Merge branch 'development' into LTS_development
This commit is contained in:
commit
3a4784f1a9
3 changed files with 9 additions and 1 deletions
|
@ -334,6 +334,10 @@ void HTTP::Parser::SetHeader(std::string i, std::string v) {
|
|||
headers[i] = v;
|
||||
}
|
||||
|
||||
void HTTP::Parser::clearHeader(const std::string & i){
|
||||
headers.erase(i);
|
||||
}
|
||||
|
||||
/// Sets header i to integer value v.
|
||||
void HTTP::Parser::SetHeader(std::string i, long long v) {
|
||||
Trim(i);
|
||||
|
|
|
@ -17,6 +17,7 @@ namespace HTTP {
|
|||
bool Read(Socket::Connection & conn);
|
||||
bool Read(std::string & strbuf);
|
||||
std::string GetHeader(std::string i);
|
||||
void clearHeader(const std::string & i);
|
||||
std::string GetVar(std::string i);
|
||||
std::string getUrl();
|
||||
std::string allVars();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue