mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-12 03:39:51 +00:00
39 lines
683 B
C++
39 lines
683 B
C++
// Aseprite Network Library
|
|
// Copyright (c) 2001-2016 David Capello
|
|
//
|
|
// This file is released under the terms of the MIT license.
|
|
// Read LICENSE.txt for more information.
|
|
|
|
#ifndef NET_HTTP_REQUEST_H_INCLUDED
|
|
#define NET_HTTP_REQUEST_H_INCLUDED
|
|
#pragma once
|
|
|
|
#include "base/disable_copying.h"
|
|
|
|
#include <string>
|
|
|
|
namespace net {
|
|
|
|
class HttpHeaders;
|
|
class HttpRequestImpl;
|
|
class HttpResponse;
|
|
|
|
class HttpRequest {
|
|
public:
|
|
HttpRequest(const std::string& url);
|
|
~HttpRequest();
|
|
|
|
void setHeaders(const HttpHeaders& headers);
|
|
bool send(HttpResponse& response);
|
|
void abort();
|
|
|
|
private:
|
|
HttpRequestImpl* m_impl;
|
|
|
|
DISABLE_COPYING(HttpRequest);
|
|
};
|
|
|
|
} // namespace net
|
|
|
|
#endif
|