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

#include <gpudb/Http.hpp>

+ Inheritance diagram for gpudb::StringHttpRequest:
+ Collaboration diagram for gpudb::StringHttpRequest:

Public Member Functions

 StringHttpRequest ()
 
 StringHttpRequest (const HttpUrl &url)
 
const std::string * getRequestBody ()
 
void setRequestBody (const std::string *requestBody)
 
- Public Member Functions inherited from gpudb::HttpRequest
 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)
 

Protected Member Functions

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

Additional Inherited Members

- Static Public Attributes inherited from gpudb::HttpRequest
static const std::string GET
 
static const std::string HEAD
 
static const std::string POST
 

Detailed Description

Definition at line 132 of file Http.hpp.

Constructor & Destructor Documentation

◆ StringHttpRequest() [1/2]

gpudb::StringHttpRequest::StringHttpRequest ( )

◆ StringHttpRequest() [2/2]

gpudb::StringHttpRequest::StringHttpRequest ( const HttpUrl url)

Member Function Documentation

◆ getRequestBody()

const std::string* gpudb::StringHttpRequest::getRequestBody ( )

◆ read()

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

Reimplemented from gpudb::HttpRequest.

◆ setRequestBody()

void gpudb::StringHttpRequest::setRequestBody ( const std::string *  requestBody)

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