2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
41#ifndef WEB_HTTP_UTILS_H
42#define WEB_HTTP_UTILS_H
44#ifndef DOXYGEN_SHOULD_SKIP_THIS
48 template <
typename ValueT>
63 std::string
url_decode(
const std::string& text);
65 std::string
url_encode(
const std::string& text);
67 std::string&
str_trimm(std::string& text);
69 std::pair<std::string, std::string>
str_split(
const std::string& base,
char c_middle);
71 std::pair<std::string, std::string>
str_split_last(
const std::string& base,
char c_middle);
75 struct tm from_http_date(
const std::string& http_date);
79 std::string::iterator
to_lower(std::string& string);
81 std::string
toString(
const std::string& method,
82 const std::string& url,
83 const std::string& version,
87 const std::vector<
char>& body);
89 std::string
toString(
const std::string& version,
90 const std::string& statusCode,
91 const std::string& reason,
94 const std::vector<
char>& body);
std::string to_http_date(struct tm *tm)
std::string toString(const std::string &version, const std::string &statusCode, const std::string &reason, const web::http::CiStringMap< std::string > &header, const web::http::CiStringMap< web::http::CookieOptions > &cookies, const std::vector< char > &body)
std::string url_encode(const std::string &text)
std::string file_mod_http_date(const std::string &filePath)
std::string::iterator to_lower(std::string &string)
std::pair< std::string, std::string > str_split_last(const std::string &base, char c_middle)
std::string url_decode(const std::string &text)
std::pair< std::string, std::string > str_split(const std::string &base, char c_middle)
std::string & str_trimm(std::string &text)
std::string toString(const std::string &method, const std::string &url, const std::string &version, const web::http::CiStringMap< std::string > &queries, const web::http::CiStringMap< std::string > &header, const web::http::CiStringMap< std::string > &cookies, const std::vector< char > &body)