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< Header > | headers |
| Request headers. | |
| ::string | contentType = "text/plain" |
| Set the content type for the request data in 'body'. | |
| ::istream* FormIt::Web::RequestConfig::body = nullptr |
Request body (e.g., for POST requests)
| ::string FormIt::Web::RequestConfig::contentType = "text/plain" |
Set the content type for the request data in 'body'.
| ::vector<Header> FormIt::Web::RequestConfig::headers |
Request headers.
| StringType FormIt::Web::RequestConfig::hostname |
e.g., "https://example.com"
| RequestMethod FormIt::Web::RequestConfig::method = RequestMethod::GET |
Method type.
| StringType FormIt::Web::RequestConfig::query |
e.g.
for https://example.com/query?var1=hello, this would be "query?var1=hello"