Virgil Security C++ SDK
List of all members
virgil::sdk::client::networking::Request Class Reference

This is base class for all HTTP requests. More...

#include <Request.h>

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

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
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)
 

Detailed Description

This is base class for all HTTP requests.

Note
This class belongs to the private API

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