diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-09-30 00:50:14 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-09-30 00:50:14 +0900 |
| commit | 90515dfa50c676df37f440893de6e344fbfd2cdc (patch) | |
| tree | 257d86e0614b6eb0ea8e9384af3269d60a53dbbc /src/HttpServerBodyCommand.h | |
| parent | 4b94ede268ff2ff793b22a0730dcbda09d280618 (diff) | |
RPC over SSL/TLS transport
To enable RPC over SSL/TLS, specify server certificate and private key
using --rpc-certificate and --rpc-private-key options and enable
--rpc-secure option. After the encryption is enabled, use https and
wss scheme to access RPC server.
Diffstat (limited to 'src/HttpServerBodyCommand.h')
| -rw-r--r-- | src/HttpServerBodyCommand.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/HttpServerBodyCommand.h b/src/HttpServerBodyCommand.h index 30ed7851..46c86919 100644 --- a/src/HttpServerBodyCommand.h +++ b/src/HttpServerBodyCommand.h @@ -53,6 +53,8 @@ private: SharedHandle<SocketCore> socket_; SharedHandle<HttpServer> httpServer_; Timer timeoutTimer_; + bool writeCheck_; + void sendJsonRpcErrorResponse (const std::string& httpStatus, int code, @@ -66,6 +68,7 @@ private: (const std::vector<rpc::RpcResponse>& results, const std::string& callback); void addHttpServerResponseCommand(); + void updateWriteCheck(); public: HttpServerBodyCommand(cuid_t cuid, const SharedHandle<HttpServer>& httpServer, @@ -73,10 +76,10 @@ public: const SharedHandle<SocketCore>& socket); virtual ~HttpServerBodyCommand(); - + virtual bool execute(); }; -} // namespace aria2 +} // namespace aria2 #endif // D_HTTP_SERVER_BODY_COMMAND_H |
