MySQL 8.0.40
Source Code Documentation
|
#include "mysqlrouter/http_common_export.h"
#include <bitset>
#include <ctime>
#include <functional>
#include <memory>
#include <stdexcept>
#include <string>
#include <system_error>
#include <vector>
#include "mysql/harness/net_ts/impl/socket_constants.h"
Go to the source code of this file.
Classes | |
class | EventHttpBoundSocket |
Http bound socket. More... | |
class | HttpHeaders |
headers of a HTTP response/request. More... | |
class | HttpHeaders::Iterator |
class | HttpBuffer |
a Buffer to send/read from network. More... | |
class | HttpUri |
representation of HTTP URI. More... | |
class | HttpRequest |
a HTTP request and response. More... | |
class | EventHttp |
Http server build on top of EventBase . More... | |
Namespaces | |
namespace | HttpStatusCode |
namespace | HttpMethod |
namespace | HttpMethod::Pos |
Typedefs | |
using | HttpStatusCode::name_type = const char * |
using | HttpStatusCode::key_type = int |
using | HttpMethod::type = int |
using | HttpMethod::pos_type = unsigned |
using | HttpMethod::Bitset = std::bitset< Pos::_LAST+1 > |
Functions | |
name_type | HttpStatusCode::get_default_status_text (key_type key) |
HTTP_COMMON_EXPORT std::string | http_uri_path_canonicalize (const std::string &uri_path) |
canonicalize a URI path. More... | |
HTTP_COMMON_EXPORT time_t | time_from_rfc5322_fixdate (const char *date_buf) |
convert a Date: header into a time_t. More... | |
HTTP_COMMON_EXPORT int | time_to_rfc5322_fixdate (time_t ts, char *date_buf, size_t date_buf_len) |
convert time_t into a Date: header value. More... | |
HTTP_COMMON_EXPORT std::string http_uri_path_canonicalize | ( | const std::string & | uri_path | ) |
canonicalize a URI path.
input | output |
---|---|
/ | / |
/./ | / |
// | / |
/../ | / |
/a/../ | / |
/../a/ | /a/ |
/../a | /a |
HTTP_COMMON_EXPORT time_t time_from_rfc5322_fixdate | ( | const char * | date_buf | ) |
convert a Date: header into a time_t.
std::out_of_range | on invalid formats |
HTTP_COMMON_EXPORT int time_to_rfc5322_fixdate | ( | time_t | ts, |
char * | date_buf, | ||
size_t | date_buf_len | ||
) |
convert time_t into a Date: header value.