X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fnet%2Fserver%2Fhttp_server.h;h=4309d122f1ead040eb28f2c2557a489b9fbff1b6;hb=004985e17e624662a4c85c76a7654039dc83f028;hp=51bec95688926397444704793a7f96d24b4b1039;hpb=2f108dbacb161091e42a3479f4e171339b7e7623;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/net/server/http_server.h b/src/net/server/http_server.h index 51bec95..4309d12 100644 --- a/src/net/server/http_server.h +++ b/src/net/server/http_server.h @@ -47,6 +47,10 @@ class HttpServer : public StreamListenSocket::Delegate, void AcceptWebSocket(int connection_id, const HttpServerRequestInfo& request); void SendOverWebSocket(int connection_id, const std::string& data); + // Sends the provided data directly to the given connection. No validation is + // performed that data constitutes a valid HTTP response. A valid HTTP + // response may be split across multiple calls to SendRaw. + void SendRaw(int connection_id, const std::string& data); void SendResponse(int connection_id, const HttpServerResponseInfo& response); void Send(int connection_id, HttpStatusCode status_code,