Realistic 3D camera system
3D camera system components
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
asio-1.10.6
src
examples
cpp11
http
server
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_REPLY_HPP
12
#define HTTP_REPLY_HPP
13
14
#include <string>
15
#include <vector>
16
#include <
asio.hpp
>
17
#include "
header.hpp
"
18
19
namespace
http
{
20
namespace
server
{
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 server
62
}
// namespace http
63
64
#endif // HTTP_REPLY_HPP
http::server::reply::not_modified
Definition:
reply.hpp:35
http::server::reply::multiple_choices
Definition:
reply.hpp:32
http::server::reply::not_found
Definition:
reply.hpp:39
http::server::reply::internal_server_error
Definition:
reply.hpp:40
http::server::reply::moved_permanently
Definition:
reply.hpp:33
http::server::reply::forbidden
Definition:
reply.hpp:38
http::server::reply::not_implemented
Definition:
reply.hpp:41
asio.hpp
http::server::reply::service_unavailable
Definition:
reply.hpp:43
http
Definition:
connection.cpp:17
http::server::reply::to_buffers
std::vector< asio::const_buffer > to_buffers()
Definition:
reply.cpp:103
http::server::reply::bad_request
Definition:
reply.hpp:36
http::server::reply::status
enum http::server::reply::status_type status
http::server::reply::bad_gateway
Definition:
reply.hpp:42
server
Definition:
server.cpp:183
http::server::reply::stock_reply
static reply stock_reply(status_type status)
Get a stock reply.
Definition:
reply.cpp:242
http::server::reply
A reply to be sent to a client.
Definition:
reply.hpp:23
http::server::reply::no_content
Definition:
reply.hpp:31
http::server::reply::ok
Definition:
reply.hpp:28
http::server::reply::accepted
Definition:
reply.hpp:30
header.hpp
http::server::reply::created
Definition:
reply.hpp:29
http::server::reply::moved_temporarily
Definition:
reply.hpp:34
http::server::reply::headers
std::vector< header > headers
The headers to be included in the reply.
Definition:
reply.hpp:47
http::server::reply::content
std::string content
The content to be sent in the reply.
Definition:
reply.hpp:50
http::server::reply::status_type
status_type
The status of the reply.
Definition:
reply.hpp:26
http::server::reply::unauthorized
Definition:
reply.hpp:37
Generated by
1.8.11