This is base class for all HTTP requests to the Virgil Service.
More...
#include <ClientRequest.h>
|
| ClientRequest (std::string accessToken) |
| Constructor. More...
|
|
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)
|
|
|
static const std::string | accessTokenHeader |
| std::string with header key for authorization
|
|
static const std::string | accessTokenPrefix |
| std::string with prefix to Access Token in authentication header
|
|
|
enum | Method { GET,
POST,
PUT,
DEL
} |
|
using | Header = std::map< std::string, std::string > |
|
using | Parameters = std::map< std::string, std::string > |
|
This is base class for all HTTP requests to the Virgil Service.
virgil::sdk::client::networking::ClientRequest::ClientRequest |
( |
std::string |
accessToken | ) |
|
Constructor.
- Parameters
-
accessToken | std::string with access token for the Virgil Service |
The documentation for this class was generated from the following file: