Electroneum
Public Member Functions | Public Attributes | List of all members
crow::request Struct Reference

#include <http_request.h>

Collaboration diagram for crow::request:
Collaboration graph
[legend]

Public Member Functions

 request ()
 
 request (HTTPMethod method, std::string raw_url, std::string url, query_string url_params, ci_map headers, std::string body)
 
void add_header (std::string key, std::string value)
 
const std::string & get_header_value (const std::string &key) const
 
template<typename CompletionHandler >
void post (CompletionHandler handler)
 
template<typename CompletionHandler >
void dispatch (CompletionHandler handler)
 

Public Attributes

HTTPMethod method
 
std::string raw_url
 
std::string url
 
query_string url_params
 
ci_map headers
 
std::string body
 
void * middleware_context {}
 
boost::asio::io_service * io_service {}
 

Constructor & Destructor Documentation

◆ request() [1/2]

crow::request::request ( )
inline

◆ request() [2/2]

crow::request::request ( HTTPMethod  method,
std::string  raw_url,
std::string  url,
query_string  url_params,
ci_map  headers,
std::string  body 
)
inline

Member Function Documentation

◆ add_header()

void crow::request::add_header ( std::string  key,
std::string  value 
)
inline

◆ dispatch()

template<typename CompletionHandler >
void crow::request::dispatch ( CompletionHandler  handler)
inline

◆ get_header_value()

const std::string& crow::request::get_header_value ( const std::string &  key) const
inline

◆ post()

template<typename CompletionHandler >
void crow::request::post ( CompletionHandler  handler)
inline

Member Data Documentation

◆ body

std::string crow::request::body

◆ headers

ci_map crow::request::headers

◆ io_service

boost::asio::io_service* crow::request::io_service {}

◆ method

HTTPMethod crow::request::method

◆ middleware_context

void* crow::request::middleware_context {}

◆ raw_url

std::string crow::request::raw_url

◆ url

std::string crow::request::url

◆ url_params

query_string crow::request::url_params

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