#pragma once #include #include #include class GHttpResponse : public GNetworkResponse { public: virtual ~GHttpResponse() override; static Retained create(int code, HashMap&& headers, ByteBuffer&& payload) { return adopt(*new GHttpResponse(code, move(headers), move(payload))); } int code() const { return m_code; } const HashMap& headers() const { return m_headers; } private: GHttpResponse(int code, HashMap&&, ByteBuffer&&); int m_code { 0 }; HashMap m_headers; };