diff options
Diffstat (limited to 'net/server/http_connection.h')
-rw-r--r-- | net/server/http_connection.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/server/http_connection.h b/net/server/http_connection.h index c3c573a..488d528 100644 --- a/net/server/http_connection.h +++ b/net/server/http_connection.h @@ -10,6 +10,7 @@ #include "base/basictypes.h" #include "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h" +#include "net/http/http_status_code.h" namespace net { @@ -23,9 +24,9 @@ class HttpConnection { void Send(const std::string& data); void Send(const char* bytes, int len); - void Send200(const std::string& data, const std::string& content_type); - void Send404(); - void Send500(const std::string& message); + void Send(HttpStatusCode status_code, + const std::string& data, + const std::string& content_type); void Shift(int num_bytes); |