alaCarte Maps
Renderer for OpenStreetMap tiles
HttpRequest::Reply Class Reference

#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< Headerheaders
 The headers to be included in the Reply. More...
 
std::string content
 The content to be sent in the Reply. More...
 
shared_ptr< Tiletile
 The Tile to be sent in the Reply. More...
 

Detailed Description

Definition at line 51 of file http_request.hpp.

Member Enumeration Documentation

Enumerator
ok 
created 
accepted 
no_content 
multiple_choices 
moved_permanently 
moved_temporarily 
not_modified 
bad_request 
unauthorized 
forbidden 
not_found 
internal_server_error 
not_implemented 
bad_gateway 
service_unavailable 

Definition at line 54 of file http_request.hpp.

Member Function Documentation

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.

Member Data Documentation

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.


The documentation for this class was generated from the following files: