GPUdb C++ API  Version 6.2.0.3
gpudb::HttpRequest Class Reference

#include <gpudb/Http.hpp>

+ Inheritance diagram for gpudb::HttpRequest:

Public Member Functions

 HttpRequest ()
 
 HttpRequest (const HttpUrl &url)
 
boost::asio::ssl::context * getSslContext ()
 
const HttpUrlgetUrl () const
 
const std::string & getRequestMethod () const
 
const std::string & getRequestHeader (const std::string &key) const
 
std::map< std::string, std::string > & getRequestHeaders ()
 
size_t getTimeout () const
 
void setSslContext (boost::asio::ssl::context *sslContext)
 
void setUrl (const HttpUrl &url)
 
void setRequestMethod (const std::string &method)
 
void addRequestHeader (const std::string &key, const std::string &value)
 
void setTimeout (const size_t timeout)
 
void send (HttpResponse &response)
 

Static Public Attributes

static const std::string GET
 
static const std::string HEAD
 
static const std::string POST
 

Protected Member Functions

virtual void read (const void *&data, size_t &length) const
 

Friends

template<typename T >
class HttpConnection
 

Detailed Description

Definition at line 67 of file Http.hpp.

Constructor & Destructor Documentation

◆ HttpRequest() [1/2]

gpudb::HttpRequest::HttpRequest ( )

◆ HttpRequest() [2/2]

gpudb::HttpRequest::HttpRequest ( const HttpUrl url)

Member Function Documentation

◆ addRequestHeader()

void gpudb::HttpRequest::addRequestHeader ( const std::string &  key,
const std::string &  value 
)

◆ getRequestHeader()

const std::string& gpudb::HttpRequest::getRequestHeader ( const std::string &  key) const

◆ getRequestHeaders()

std::map<std::string, std::string>& gpudb::HttpRequest::getRequestHeaders ( )

◆ getRequestMethod()

const std::string& gpudb::HttpRequest::getRequestMethod ( ) const

◆ getSslContext()

boost::asio::ssl::context* gpudb::HttpRequest::getSslContext ( )

◆ getTimeout()

size_t gpudb::HttpRequest::getTimeout ( ) const

◆ getUrl()

const HttpUrl& gpudb::HttpRequest::getUrl ( ) const

◆ read()

virtual void gpudb::HttpRequest::read ( const void *&  data,
size_t &  length 
) const
protectedvirtual

◆ send()

void gpudb::HttpRequest::send ( HttpResponse response)

◆ setRequestMethod()

void gpudb::HttpRequest::setRequestMethod ( const std::string &  method)

◆ setSslContext()

void gpudb::HttpRequest::setSslContext ( boost::asio::ssl::context *  sslContext)

◆ setTimeout()

void gpudb::HttpRequest::setTimeout ( const size_t  timeout)

◆ setUrl()

void gpudb::HttpRequest::setUrl ( const HttpUrl url)

Friends And Related Function Documentation

◆ HttpConnection

template<typename T >
friend class HttpConnection
friend

Definition at line 103 of file Http.hpp.

Member Data Documentation

◆ GET

const std::string gpudb::HttpRequest::GET
static

Definition at line 70 of file Http.hpp.

◆ HEAD

const std::string gpudb::HttpRequest::HEAD
static

Definition at line 71 of file Http.hpp.

◆ POST

const std::string gpudb::HttpRequest::POST
static

Definition at line 72 of file Http.hpp.


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