diff options
author | Chris Wilson <chris+github@qwirx.com> | 2009-01-04 13:56:55 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2009-01-04 13:56:55 +0000 |
commit | 95f5a1c2dff53b88c274e358bd0cd07758819a12 (patch) | |
tree | 66745b869b2a7b039eca307fe3ed3b9074278302 /lib/httpserver/HTTPServer.cpp | |
parent | 0d1fc68db7b50c86b6eb3f635399af66ba54bd05 (diff) |
Allow adding headers to an HTTPRequest.
Allow getting response headers out of HTTPResponse.
Rename HTTPRequest Read and Write methods to Send and Receive, to avoid
confusion with IOStream.
Diffstat (limited to 'lib/httpserver/HTTPServer.cpp')
-rw-r--r-- | lib/httpserver/HTTPServer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/httpserver/HTTPServer.cpp b/lib/httpserver/HTTPServer.cpp index 742b392f..fbdadfa7 100644 --- a/lib/httpserver/HTTPServer.cpp +++ b/lib/httpserver/HTTPServer.cpp @@ -145,7 +145,7 @@ void HTTPServer::Connection(SocketStream &rStream) { // Parse the request HTTPRequest request; - if(!request.Read(getLine, mTimeout)) + if(!request.Receive(getLine, mTimeout)) { // Didn't get request, connection probably closed. break; @@ -186,7 +186,7 @@ void HTTPServer::Connection(SocketStream &rStream) response.Send(rStream, request.GetMethod() == HTTPRequest::Method_HEAD); } - // Notify dervived claases + // Notify derived claases HTTPConnectionClosing(); } |