Realistic 3D camera system
3D camera system components
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
http::server3::reply Struct Reference

A reply to be sent to a client. More...

#include <reply.hpp>

Public Types

enum  status_type {
  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
}
 The status of the reply. More...
 

Public Member Functions

std::vector< asio::const_bufferto_buffers ()
 

Static Public Member Functions

static reply stock_reply (status_type status)
 Get a stock reply. More...
 

Public Attributes

enum http::server3::reply::status_type status
 
std::vector< headerheaders
 The headers to be included in the reply. More...
 
std::string content
 The content to be sent in the reply. More...
 

Detailed Description

A reply to be sent to a client.

Definition at line 23 of file reply.hpp.

Member Enumeration Documentation

The status of the reply.

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 26 of file reply.hpp.

Member Function Documentation

reply http::server3::reply::stock_reply ( reply::status_type  status)
static

Get a stock reply.

Definition at line 242 of file reply.cpp.

std::vector< asio::const_buffer > http::server3::reply::to_buffers ( )

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 103 of file reply.cpp.

Member Data Documentation

std::string http::server3::reply::content

The content to be sent in the reply.

Definition at line 50 of file reply.hpp.

std::vector<header> http::server3::reply::headers

The headers to be included in the reply.

Definition at line 47 of file reply.hpp.

enum http::server3::reply::status_type http::server3::reply::status

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