HTTP v1.13.1
|
Namespaces | |
namespace | exceptions |
Classes | |
class | HTTPBuilder |
HTTP builder. More... | |
class | HTTPParser |
HTTP parser. More... | |
struct | InsensitiveStringEqual |
Custom equal for headers. More... | |
struct | InsensitiveStringHash |
Custom hashing for headers with case insensitive. More... | |
class | Multipart |
Defines each part of multipart/form-data. More... | |
Typedefs | |
using | HeadersMap = std::unordered_map<std::string, std::string, InsensitiveStringHash, InsensitiveStringEqual> |
Case insensitive unordered_map. | |
Functions | |
ostream & | operator<< (ostream &outputStream, const HTTPBuilder &builder) |
ostream & | operator<< (ostream &outputStream, const HTTPParser &parser) |
istream & | operator>> (istream &inputStream, HTTPParser &parser) |
string | getHTTPLibraryVersion () |
Get version of HTTP library. | |
string | encodeUrl (string_view data) |
string | decodeUrl (string_view data) |
string | __getMessageFromCode (int code) |
std::ostream & | operator<< (std::ostream &stream, ResponseCodes responseCode) |
Output stream operator for ResponseCodes. | |
bool | operator== (int code, ResponseCodes otherCode) |
Compare operator for ResponseCodes. | |
HTTP_API_FUNCTION std::string | encodeUrl (std::string_view data) |
Encode data to application/x-www-form-urlencoded format. | |
HTTP_API_FUNCTION std::string | decodeUrl (std::string_view data) |
Decode data from application/x-www-form-urlencoded format. | |
template<typename T > requires (std::same_as<T, ResponseCodes> || std::convertible_to<T, int>) | |
std::string | getMessageFromCode (const T &code) |
Get response message from response code. | |
using web::HeadersMap = std::unordered_map<std::string, std::string, InsensitiveStringHash, InsensitiveStringEqual> |
Case insensitive unordered_map.
Definition at line 194 of file HTTPUtility.h.
|
strong |
Response codes.
Definition at line 24 of file HTTPUtility.h.
HTTP_API_FUNCTION std::string web::__getMessageFromCode | ( | int | code | ) |
Definition at line 260 of file HTTPUtility.cpp.
HTTP_API_FUNCTION std::string web::decodeUrl | ( | std::string_view | data | ) |
Decode data from application/x-www-form-urlencoded format.
data |
string web::decodeUrl | ( | string_view | data | ) |
Definition at line 136 of file HTTPUtility.cpp.
HTTP_API_FUNCTION std::string web::encodeUrl | ( | std::string_view | data | ) |
Encode data to application/x-www-form-urlencoded format.
data |
string web::encodeUrl | ( | string_view | data | ) |
Definition at line 117 of file HTTPUtility.cpp.
HTTP_API_FUNCTION std::string web::getHTTPLibraryVersion | ( | ) |
std::string web::getMessageFromCode | ( | const T & | code | ) |
Get response message from response code.
T |
code |
Definition at line 200 of file HTTPUtility.h.
ostream & web::operator<< | ( | ostream & | outputStream, |
const HTTPBuilder & | builder ) |
Definition at line 311 of file HTTPBuilder.cpp.
ostream & web::operator<< | ( | ostream & | outputStream, |
const HTTPParser & | parser ) |
Definition at line 392 of file HTTPParser.cpp.
|
inline |
Output stream operator for ResponseCodes.
stream | |
responseCode |
Definition at line 105 of file HTTPUtility.h.
|
inline |
Compare operator for ResponseCodes.
code | |
otherCode |
Definition at line 116 of file HTTPUtility.h.
istream & web::operator>> | ( | istream & | inputStream, |
HTTPParser & | parser ) |
Definition at line 452 of file HTTPParser.cpp.