Allows passing an initializer list of named HTTP Parameters that will be URL Encoded within the request URI or xxhr::Body ( i.e. In the form your/url?param=value). More...
Public Member Functions | |
void | insert (const Parameter ¶meter) |
adds another parameter | |
xxhr::Parameters allows to provide a list of parameters that will be passed to the corresponding url.
Those parameters are appended URI Encoded to the URI, therefore note that sensitive information might be leaked to HTTP Proxy logs or other infrastructure in between xxhr and the server.
Let's query google search :
To perform an HTTP POST request with application/x-www-form-urlencoded
parameters you can wrap Parameters into xxhr::Body.
In this context, you might also need to send URI xxhr::Parameters as in the example above. Therefore sending form-urlencoded parameter can be combined as follow :
One can send a raw POST Payload without any encoding by instead passing a string for the xxhr::Body parameter :
Naturally all the above works for any HTTP verbs: POST, PUT, OPTIONS...