/* */ #ifndef _D_HTTP_RESPONSE_COMMAND_H_ #define _D_HTTP_RESPONSE_COMMAND_H_ #include "AbstractCommand.h" namespace aria2 { class HttpConnection; class HttpDownloadCommand; class HttpResponse; class SocketCore; class HttpResponseCommand : public AbstractCommand { private: SharedHandle httpConnection; bool handleDefaultEncoding(const SharedHandle& httpResponse); bool handleOtherEncoding(const SharedHandle& httpResponse); bool skipResponseBody(const SharedHandle& httpResponse); HttpDownloadCommand* createHttpDownloadCommand(const SharedHandle& httpResponse); protected: bool executeInternal(); bool shouldInflateContentEncoding (const SharedHandle& httpResponse); public: HttpResponseCommand(int32_t cuid, const SharedHandle& req, RequestGroup* requestGroup, const SharedHandle& httpConnection, DownloadEngine* e, const SharedHandle& s); ~HttpResponseCommand(); }; } // namespace aria2 #endif // _D_HTTP_RESPONSE_COMMAND_H_