Realistic 3D camera system
3D camera system components
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
asio-1.10.6
src
examples
cpp03
http
server3
reply.hpp
Go to the documentation of this file.
1
//
2
// reply.hpp
3
// ~~~~~~~~~
4
//
5
// Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
6
//
7
// Distributed under the Boost Software License, Version 1.0. (See accompanying
8
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9
//
10
11
#ifndef HTTP_SERVER3_REPLY_HPP
12
#define HTTP_SERVER3_REPLY_HPP
13
14
#include <string>
15
#include <vector>
16
#include <
asio.hpp
>
17
#include "
header.hpp
"
18
19
namespace
http
{
20
namespace
server3 {
21
23
struct
reply
24
{
26
enum
status_type
27
{
28
ok
= 200,
29
created
= 201,
30
accepted
= 202,
31
no_content
= 204,
32
multiple_choices
= 300,
33
moved_permanently
= 301,
34
moved_temporarily
= 302,
35
not_modified
= 304,
36
bad_request
= 400,
37
unauthorized
= 401,
38
forbidden
= 403,
39
not_found
= 404,
40
internal_server_error
= 500,
41
not_implemented
= 501,
42
bad_gateway
= 502,
43
service_unavailable
= 503
44
}
status
;
45
47
std::vector<header>
headers
;
48
50
std::string
content
;
51
55
std::vector<asio::const_buffer>
to_buffers
();
56
58
static
reply
stock_reply
(
status_type
status
);
59
};
60
61
}
// namespace server3
62
}
// namespace http
63
64
#endif // HTTP_SERVER3_REPLY_HPP
http::server3::reply::status_type
status_type
The status of the reply.
Definition:
reply.hpp:26
http::server3::reply::headers
std::vector< header > headers
The headers to be included in the reply.
Definition:
reply.hpp:47
http::server3::reply::not_found
Definition:
reply.hpp:39
http::server3::reply::ok
Definition:
reply.hpp:28
http::server3::reply::moved_temporarily
Definition:
reply.hpp:34
http::server3::reply::multiple_choices
Definition:
reply.hpp:32
asio.hpp
http
Definition:
connection.cpp:17
http::server3::reply::content
std::string content
The content to be sent in the reply.
Definition:
reply.hpp:50
http::server3::reply::created
Definition:
reply.hpp:29
http::server3::reply::unauthorized
Definition:
reply.hpp:37
http::server3::reply::not_modified
Definition:
reply.hpp:35
http::server3::reply::not_implemented
Definition:
reply.hpp:41
http::server3::reply::service_unavailable
Definition:
reply.hpp:43
http::server3::reply::stock_reply
static reply stock_reply(status_type status)
Get a stock reply.
Definition:
reply.cpp:242
http::server3::reply::moved_permanently
Definition:
reply.hpp:33
http::server3::reply::no_content
Definition:
reply.hpp:31
http::server3::reply::status
enum http::server3::reply::status_type status
http::server3::reply
A reply to be sent to a client.
Definition:
reply.hpp:23
http::server3::reply::bad_gateway
Definition:
reply.hpp:42
http::server3::reply::internal_server_error
Definition:
reply.hpp:40
http::server3::reply::to_buffers
std::vector< asio::const_buffer > to_buffers()
Definition:
reply.cpp:103
http::server3::reply::bad_request
Definition:
reply.hpp:36
header.hpp
http::server3::reply::accepted
Definition:
reply.hpp:30
http::server3::reply::forbidden
Definition:
reply.hpp:38
Generated by
1.8.11