Public Member Functions | List of all members
xxhr::Body Struct Reference

The body sent with the request. Typically useful in xxhr::POST context but can be used in any request type. More...

Public Member Functions

 Body (const std::string &std_string)
 Construct a raw body from a string.
 
 Body (const Parameters &params)
 Construct an application/x-www-form-urlencoded Body from an xxhr::Parameter list.
 

Detailed Description

With these you either construct a raw body from an std::string or a form-urlencoded body from an xxhr::Parameters.

Examples

Passing POST, PUT or GET parameters


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