FormIt C++ API v25.0.0 (2025.0.0)
Loading...
Searching...
No Matches
FormIt::Web::RequestConfig Struct Reference

Description

Data used to form a REST request.

#include <FormItCoreTypes.h>

Public Attributes

StringType hostname
 e.g., "https://example.com"
 
StringType query
 e.g.
 
RequestMethod method = RequestMethod::GET
 Method type.
 
::istream * body = nullptr
 Request body (e.g., for POST requests)
 
::vector< Headerheaders
 Request headers.
 
::string contentType = "text/plain"
 Set the content type for the request data in 'body'.
 

Member Data Documentation

◆ body

::istream* FormIt::Web::RequestConfig::body = nullptr

Request body (e.g., for POST requests)

◆ contentType

::string FormIt::Web::RequestConfig::contentType = "text/plain"

Set the content type for the request data in 'body'.

◆ headers

::vector<Header> FormIt::Web::RequestConfig::headers

Request headers.

◆ hostname

StringType FormIt::Web::RequestConfig::hostname

e.g., "https://example.com"

◆ method

RequestMethod FormIt::Web::RequestConfig::method = RequestMethod::GET

Method type.

◆ query

StringType FormIt::Web::RequestConfig::query

e.g.

for https://example.com/query?var1=hello, this would be "query?var1=hello"


The documentation for this struct was generated from the following file: