Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
websocketpp::http Namespace Reference

HTTP handling support.

Namespaces

namespace  parser
 
namespace  status_code
 HTTP Status codes.
 

Classes

class  exception
 

Typedefs

typedef std::map< std::string, std::string > attribute_list
 The type of an HTTP attribute list.
 
typedef std::vector< std::pair< std::string, attribute_list > > parameter_list
 The type of an HTTP parameter list.
 

Functions

bool is_token_char (unsigned char c)
 Is the character a token.
 
bool is_not_token_char (unsigned char c)
 Is the character a non-token.
 
bool is_whitespace_char (unsigned char c)
 Is the character whitespace.
 
bool is_not_whitespace_char (unsigned char c)
 Is the character non-whitespace.
 

Variables

size_t const max_header_size = 16000
 Maximum size in bytes before rejecting an HTTP header as too big.
 
size_t const max_body_size = 32000000
 Default Maximum size in bytes for HTTP message bodies.
 
size_t const istream_buffer = 512
 Number of bytes to use for temporary istream read buffers.
 

Typedef Documentation

◆ attribute_list

typedef std::map<std::string,std::string> websocketpp::http::attribute_list

The attribute list is an unordered key/value map. Encoded attribute values are delimited by semicolons.

Definition at line 45 of file constants.hpp.

◆ parameter_list

typedef std::vector< std::pair<std::string,attribute_list> > websocketpp::http::parameter_list

The parameter list is an ordered pairing of a parameter and its associated attribute list. Encoded parameter values are delimited by commas.

Definition at line 53 of file constants.hpp.

Function Documentation

◆ is_not_token_char()

bool websocketpp::http::is_not_token_char ( unsigned char c)
inline

Definition at line 103 of file constants.hpp.

103 {
104 return !header_token[c];
105 }
Here is the caller graph for this function:

◆ is_not_whitespace_char()

bool websocketpp::http::is_not_whitespace_char ( unsigned char c)
inline

Definition at line 116 of file constants.hpp.

116 {
117 return (c != 9 && c != 32);
118 }
Here is the caller graph for this function:

◆ is_token_char()

bool websocketpp::http::is_token_char ( unsigned char c)
inline

Definition at line 98 of file constants.hpp.

98 {
99 return (header_token[c] == 1);
100 }
Here is the caller graph for this function:

◆ is_whitespace_char()

bool websocketpp::http::is_whitespace_char ( unsigned char c)
inline

whitespace is space (32) or horizontal tab (9)

Definition at line 111 of file constants.hpp.

111 {
112 return (c == 9 || c == 32);
113 }
Here is the caller graph for this function:

Variable Documentation

◆ istream_buffer

size_t const websocketpp::http::istream_buffer = 512

Definition at line 71 of file constants.hpp.

◆ max_body_size

size_t const websocketpp::http::max_body_size = 32000000

Definition at line 68 of file constants.hpp.

◆ max_header_size

size_t const websocketpp::http::max_header_size = 16000

Definition at line 65 of file constants.hpp.