alaCarte Maps
Renderer for OpenStreetMap tiles
|
#include <http_request.hpp>
Public Types | |
enum | StatusType { ok = 200, created = 201, accepted = 202, no_content = 204, multiple_choices = 300, moved_permanently = 301, moved_temporarily = 302, not_modified = 304, bad_request = 400, unauthorized = 401, forbidden = 403, not_found = 404, internal_server_error = 500, not_implemented = 501, bad_gateway = 502, service_unavailable = 503 } |
Public Member Functions | |
std::vector< boost::asio::const_buffer > | toBuffers () |
Convert the Reply into a vector of buffers. More... | |
Public Attributes | |
StatusType | status |
The Status of the Reply. More... | |
std::vector< Header > | headers |
The headers to be included in the Reply. More... | |
std::string | content |
The content to be sent in the Reply. More... | |
shared_ptr< Tile > | tile |
The Tile to be sent in the Reply. More... | |
Definition at line 51 of file http_request.hpp.
Definition at line 54 of file http_request.hpp.
std::vector< boost::asio::const_buffer > HttpRequest::Reply::toBuffers | ( | ) |
Convert the Reply into a vector of buffers.
The buffers do not own the underlying memory blocks, therefore the reply object must remain valid and not be changed until the write operation has completed.
Definition at line 238 of file http_request.cpp.
std::string HttpRequest::Reply::content |
The content to be sent in the Reply.
Definition at line 77 of file http_request.hpp.
std::vector<Header> HttpRequest::Reply::headers |
The headers to be included in the Reply.
Definition at line 75 of file http_request.hpp.
StatusType HttpRequest::Reply::status |
The Status of the Reply.
Definition at line 73 of file http_request.hpp.
shared_ptr<Tile> HttpRequest::Reply::tile |
The Tile to be sent in the Reply.
Definition at line 79 of file http_request.hpp.