| 1 | // Aseprite Network Library |
| 2 | // Copyright (c) 2001-2016 David Capello |
| 3 | // |
| 4 | // This file is released under the terms of the MIT license. |
| 5 | // Read LICENSE.txt for more information. |
| 6 | |
| 7 | #ifndef NET_HTTP_REQUEST_H_INCLUDED |
| 8 | #define NET_HTTP_REQUEST_H_INCLUDED |
| 9 | #pragma once |
| 10 | |
| 11 | #include "base/disable_copying.h" |
| 12 | |
| 13 | #include <string> |
| 14 | |
| 15 | namespace net { |
| 16 | |
| 17 | class ; |
| 18 | class HttpRequestImpl; |
| 19 | class HttpResponse; |
| 20 | |
| 21 | class HttpRequest { |
| 22 | public: |
| 23 | HttpRequest(const std::string& url); |
| 24 | ~HttpRequest(); |
| 25 | |
| 26 | void (const HttpHeaders& ); |
| 27 | bool send(HttpResponse& response); |
| 28 | void abort(); |
| 29 | |
| 30 | private: |
| 31 | HttpRequestImpl* m_impl; |
| 32 | |
| 33 | DISABLE_COPYING(HttpRequest); |
| 34 | }; |
| 35 | |
| 36 | } // namespace net |
| 37 | |
| 38 | #endif |
| 39 | |