Virgil Security C++ SDK
Public Member Functions | Static Public Attributes | List of all members
virgil::sdk::client::networking::ClientRequest Class Reference

This is base class for all HTTP requests to the Virgil Service. More...

#include <ClientRequest.h>

Inheritance diagram for virgil::sdk::client::networking::ClientRequest:
virgil::sdk::client::networking::Request

Public Member Functions

 ClientRequest (std::string accessToken)
 Constructor. More...
 
- Public Member Functions inherited from virgil::sdk::client::networking::Request
RequestbaseAddress (const std::string &baseAddress)
 Set base address URI.
 
std::string baseAddress () const
 Return base address URI.
 
Requestbody (const std::string &body)
 Set request body.
 
std::string body () const
 Return request body.
 
RequestcontentType (const std::string &contentType)
 Set request content type.
 
std::string contentType () const
 Return request content type.
 
Requestendpoint (const std::string &endpoint)
 Set request endpoint.
 
std::string endpoint () const
 Return request endpoint.
 
Requestheader (const Header &header)
 Set request header.
 
Header header () const
 Get request header.
 
Requestparameters (const Parameters &parameters)
 Set request parameters.
 
Parameters parameters () const
 Get request parameters.
 
std::string uri () const
 Return request URI.
 
Requestmethod (const Method &method)
 Set request HTTP method.
 
Method method () const
 Get request HTTP method.
 
Requestget ()
 Short form of method Request::method(Method::GET)
 
Requestpost ()
 Short form of method Request::method(Method::POST)
 
Requestput ()
 Short form of method Request::method(Method::PUT)
 
Requestdel ()
 Short form of method Request::method(Method::DELETE)
 

Static Public Attributes

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
 

Additional Inherited Members

- Public Types inherited from virgil::sdk::client::networking::Request
enum  Method { GET, POST, PUT, DEL }
 
using Header = std::map< std::string, std::string >
 
using Parameters = std::map< std::string, std::string >
 

Detailed Description

This is base class for all HTTP requests to the Virgil Service.

Constructor & Destructor Documentation

virgil::sdk::client::networking::ClientRequest::ClientRequest ( std::string  accessToken)

Constructor.

Parameters
accessTokenstd::string with access token for the Virgil Service

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