HTTP v1.13.1
|
#include <ostream>
#include <unordered_map>
#include <string>
#include <optional>
Go to the source code of this file.
Classes | |
struct | web::InsensitiveStringHash |
Custom hashing for headers with case insensitive. More... | |
struct | web::InsensitiveStringEqual |
Custom equal for headers. More... | |
class | web::Multipart |
Defines each part of multipart/form-data. More... | |
Namespaces | |
namespace | web |
Macros | |
#define | HTTP_API |
#define | HTTP_API_FUNCTION |
Typedefs | |
using | web::HeadersMap = std::unordered_map<std::string, std::string, InsensitiveStringHash, InsensitiveStringEqual> |
Case insensitive unordered_map. | |
Functions | |
std::ostream & | web::operator<< (std::ostream &stream, ResponseCodes responseCode) |
Output stream operator for ResponseCodes. | |
bool | web::operator== (int code, ResponseCodes otherCode) |
Compare operator for ResponseCodes. | |
string | web::getHTTPLibraryVersion () |
Get version of HTTP library. | |
HTTP_API_FUNCTION std::string | web::encodeUrl (std::string_view data) |
Encode data to application/x-www-form-urlencoded format. | |
HTTP_API_FUNCTION std::string | web::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 | web::getMessageFromCode (const T &code) |
Get response message from response code. | |
string | web::__getMessageFromCode (int code) |
#define HTTP_API |
Definition at line 17 of file HTTPUtility.h.
#define HTTP_API_FUNCTION |
Definition at line 18 of file HTTPUtility.h.