Virgil Security C++ SDK
|
This is base class for all HTTP requests. More...
#include <Request.h>
Public Types | |
Inner types | |
enum | Method { GET, POST, PUT, DEL } |
Types aliases | |
using | Header = std::map< std::string, std::string > |
using | Parameters = std::map< std::string, std::string > |
Public Member Functions | |
Accessors | |
Request & | baseAddress (const std::string &baseAddress) |
Set base address URI. | |
std::string | baseAddress () const |
Return base address URI. | |
Request & | body (const std::string &body) |
Set request body. | |
std::string | body () const |
Return request body. | |
Request & | contentType (const std::string &contentType) |
Set request content type. | |
std::string | contentType () const |
Return request content type. | |
Request & | endpoint (const std::string &endpoint) |
Set request endpoint. | |
std::string | endpoint () const |
Return request endpoint. | |
Request & | header (const Header &header) |
Set request header. | |
Header | header () const |
Get request header. | |
Request & | parameters (const Parameters ¶meters) |
Set request parameters. | |
Parameters | parameters () const |
Get request parameters. | |
std::string | uri () const |
Return request URI. | |
Request & | method (const Method &method) |
Set request HTTP method. | |
Method | method () const |
Get request HTTP method. | |
Request & | get () |
Short form of method Request::method(Method::GET) | |
Request & | post () |
Short form of method Request::method(Method::POST) | |
Request & | put () |
Short form of method Request::method(Method::PUT) | |
Request & | del () |
Short form of method Request::method(Method::DELETE) | |
This is base class for all HTTP requests.