diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-03-20 21:42:09 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-03-20 21:42:09 +0900 |
| commit | f4e2c7f0603fdb0609bf163ee5ea683a44b98d69 (patch) | |
| tree | 18227134780ec9417ecc7b24969f35725a377e04 /src/HttpServer.h | |
| parent | f16511012e28d1303e300e695b310d01b6200c2c (diff) | |
Added JSON-RPC over WebSocket.
Wslay library must be placed under deps/wslay.
Diffstat (limited to 'src/HttpServer.h')
| -rw-r--r-- | src/HttpServer.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/HttpServer.h b/src/HttpServer.h index f5ebb4ee..e7d7c2dc 100644 --- a/src/HttpServer.h +++ b/src/HttpServer.h @@ -91,6 +91,12 @@ public: std::string& text, const std::string& contentType); + // Feeds "101 Switching Protocols" response. The |protocol| will + // appear in Upgrade header field. The |headers| is zero or more + // lines of HTTP header field and each line must end with "\r\n". + void feedUpgradeResponse(const std::string& protocol, + const std::string& headers); + bool authenticate(); void setUsernamePassword @@ -129,6 +135,11 @@ public: { allowOrigin_ = allowOrigin; } + + const SharedHandle<SocketCore>& getSocket() const + { + return socket_; + } }; } // namespace aria2 |
