GPUdb C++ API  Version 7.0.19.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 72 of file Http.hpp.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Friends And Related Function Documentation

template<typename T >
friend class HttpConnection
friend

Definition at line 108 of file Http.hpp.

Member Data Documentation

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

Definition at line 75 of file Http.hpp.

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

Definition at line 76 of file Http.hpp.

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

Definition at line 77 of file Http.hpp.


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