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
15namespace net {
16
17class HttpHeaders;
18class HttpRequestImpl;
19class HttpResponse;
20
21class HttpRequest {
22public:
23 HttpRequest(const std::string& url);
24 ~HttpRequest();
25
26 void setHeaders(const HttpHeaders& headers);
27 bool send(HttpResponse& response);
28 void abort();
29
30private:
31 HttpRequestImpl* m_impl;
32
33 DISABLE_COPYING(HttpRequest);
34};
35
36} // namespace net
37
38#endif
39