responce -> response

This commit is contained in:
M. Ian Graham 2007-08-31 21:22:28 +00:00
parent 7a42e30562
commit 2185c271e2
3 changed files with 12 additions and 12 deletions

View File

@ -186,7 +186,7 @@ inline int Http_BufferedReader::PumpCRRead(char * data, int maxdata, Socket_TC
}
////////////////////////////////////////////////////////////////////
// Function name : Http_BufferedReader::PumpHTTPHeaderRead
// Description : Will read a HTTP head ,, GET ..... or responce from web server
// Description : Will read a HTTP head ,, GET ..... or response from web server
//
// Return type : inline int
// Argument : char * data

View File

@ -51,13 +51,13 @@ PUBLISHED:
return _MyAddress.get_ip_port();
}
void AppendToResponce(const std::string &in)
void AppendToResponse(const std::string &in)
{
_writer+=in;
}
void SendThisResponce(const std::string &in)
void SendThisResponse(const std::string &in)
{
_writer+=in;
Finish();

View File

@ -53,23 +53,23 @@ public:
};
/*
class ParsedHttpResponce
class ParsedHttpResponse
{
std::string _Raw_Text;
std::string _responce_header;
std::string _response_header;
std::map<std::string,std::string> _header_Lines;
public:
std::string GetresponceCode()
std::string GetresponseCode()
{
std::string answer;
size_t pos = _responce_header.find_first_of(" ");
size_t pos = _response_header.find_first_of(" ");
if(pos != std::string::npos)
answer = support::trim_tonew(_responce_header.substr(pos,100));
answer = support::trim_tonew(_response_header.substr(pos,100));
pos = answer.find_first_of(" \t\n\r\0");
@ -80,9 +80,9 @@ public:
return answer;
}
bool ParseThis(const std::string &responce)
bool ParseThis(const std::string &response)
{
_Raw_Text = responce;
_Raw_Text = response;
int line_number = 0;
std::string work1(_Raw_Text);
@ -96,7 +96,7 @@ public:
if(line_number == 0 && line1.substr(0,4) == "HTTP")
{
// the first line...
_responce_header = line1;
_response_header = line1;
// printf("[%s]\n",line1.c_str());
}
@ -112,7 +112,7 @@ public:
}
return !_responce_header.empty();
return !_response_header.empty();
}
size_t PullCR(std::string &src, std::string &dst)