Browse Source

responce -> response

M. Ian Graham 18 years ago
parent
commit
2185c271e2

+ 1 - 1
direct/src/http/http_bufferedreader.i

@@ -186,7 +186,7 @@ inline int Http_BufferedReader::PumpCRRead(char * data, int   maxdata, Socket_TC
 }
 }
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 // Function name	: Http_BufferedReader::PumpHTTPHeaderRead
 // 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 
 // Return type		: inline int 
 // Argument         : char * data
 // Argument         : char * data

+ 2 - 2
direct/src/http/http_request.h

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

+ 9 - 9
direct/src/http/parsedhttprequest.h

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