Monero
Loading...
Searching...
No Matches
epee::net_utils::http Namespace Reference

Classes

class  abstract_http_client
class  http_client_factory
struct  login
class  http_server_auth
 Implements RFC 2617 digest auth. Digests from RFC 7616 can be added. More...
class  http_client_auth
 Implements RFC 2617 digest auth. Digests from RFC 7616 can be added. More...
struct  http_header_info
struct  uri_content
struct  url_content
struct  http_request_info
struct  http_response_info
class  http_simple_client_template
struct  http_server_config
class  simple_http_connection_handler
struct  i_http_server_handler
struct  custum_handler_config
class  http_custom_handler
struct  multipart_entry

Typedefs

typedef std::list< std::pair< std::string, std::string > > fields_list
typedef http_simple_client_template< blocked_mode_clienthttp_simple_client

Enumerations

enum  http_method {
  http_method_options , http_method_get , http_method_post , http_method_put ,
  http_method_head , http_method_etc , http_method_unknown
}
enum  http_content_type { http_content_type_text_html , http_content_type_image_gif , http_content_type_other , http_content_type_not_set }

Functions

std::string get_value_from_fields_list (const std::string &param_name, const net_utils::http::fields_list &fields)
std::string get_value_from_uri_line (const std::string &param_name, const std::string &uri)
static void add_field (std::string &out, const boost::string_ref name, const boost::string_ref value)
static void add_field (std::string &out, const std::pair< std::string, std::string > &field)
bool match_boundary (const std::string &content_type, std::string &boundary)
bool parse_header (std::string::const_iterator it_begin, std::string::const_iterator it_end, multipart_entry &entry)
bool handle_part_of_multipart (std::string::const_iterator it_begin, std::string::const_iterator it_end, multipart_entry &entry)
bool parse_multipart_body (const std::string &content_type, const std::string &body, std::list< multipart_entry > &out_values)
bool analize_http_method (const boost::smatch &result, http::http_method &method, int &http_ver_major, int &http_ver_minor)

Typedef Documentation

◆ fields_list

typedef std::list<std::pair<std::string, std::string> > epee::net_utils::http::fields_list

◆ http_simple_client

Enumeration Type Documentation

◆ http_content_type

Enumerator
http_content_type_text_html 
http_content_type_image_gif 
http_content_type_other 
http_content_type_not_set 

◆ http_method

Enumerator
http_method_options 
http_method_get 
http_method_post 
http_method_put 
http_method_head 
http_method_etc 
http_method_unknown 

Function Documentation

◆ add_field() [1/2]

void epee::net_utils::http::add_field ( std::string & out,
const boost::string_ref name,
const boost::string_ref value )
inlinestatic

◆ add_field() [2/2]

void epee::net_utils::http::add_field ( std::string & out,
const std::pair< std::string, std::string > & field )
inlinestatic

◆ analize_http_method()

bool epee::net_utils::http::analize_http_method ( const boost::smatch & result,
http::http_method & method,
int & http_ver_major,
int & http_ver_minor )
inline

◆ get_value_from_fields_list()

std::string epee::net_utils::http::get_value_from_fields_list ( const std::string & param_name,
const net_utils::http::fields_list & fields )

◆ get_value_from_uri_line()

std::string epee::net_utils::http::get_value_from_uri_line ( const std::string & param_name,
const std::string & uri )

◆ handle_part_of_multipart()

bool epee::net_utils::http::handle_part_of_multipart ( std::string::const_iterator it_begin,
std::string::const_iterator it_end,
multipart_entry & entry )
inline

◆ match_boundary()

bool epee::net_utils::http::match_boundary ( const std::string & content_type,
std::string & boundary )
inline

◆ parse_header()

bool epee::net_utils::http::parse_header ( std::string::const_iterator it_begin,
std::string::const_iterator it_end,
multipart_entry & entry )
inline

◆ parse_multipart_body()

bool epee::net_utils::http::parse_multipart_body ( const std::string & content_type,
const std::string & body,
std::list< multipart_entry > & out_values )
inline