diff --git a/boost/network/protocol/http/server/async_connection.hpp b/boost/network/protocol/http/server/async_connection.hpp index b2a736f7b..165eaff27 100644 --- a/boost/network/protocol/http/server/async_connection.hpp +++ b/boost/network/protocol/http/server/async_connection.hpp @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -71,32 +72,7 @@ extern void parse_headers(std::string const& input, template struct async_connection : std::enable_shared_from_this > { - /// The set of known status codes for HTTP server responses. - enum status_t { - ok = 200, - created = 201, - accepted = 202, - no_content = 204, - partial_content = 206, - multiple_choices = 300, - moved_permanently = 301, - moved_temporarily = 302, - not_modified = 304, - bad_request = 400, - unauthorized = 401, - forbidden = 403, - not_found = 404, - not_supported = 405, - not_acceptable = 406, - request_timeout = 408, - precondition_failed = 412, - unsatisfiable_range = 416, - internal_server_error = 500, - not_implemented = 501, - bad_gateway = 502, - service_unavailable = 503, - space_unavailable = 507 - }; + typedef boost::network::http::status_t status_t; typedef typename string::type string_type; typedef basic_request request; diff --git a/boost/network/protocol/http/status.hpp b/boost/network/protocol/http/status.hpp new file mode 100644 index 000000000..5b3431954 --- /dev/null +++ b/boost/network/protocol/http/status.hpp @@ -0,0 +1,39 @@ +#ifndef BOOST_NETWORK_PROTOCOL_HTTP_STATUS_HPP_20180501 +#define BOOST_NETWORK_PROTOCOL_HTTP_STATUS_HPP_20180501 + +namespace boost { +namespace network { +namespace http { + +/// The set of known status codes for HTTP server responses. +enum status_t { + ok = 200, + created = 201, + accepted = 202, + no_content = 204, + partial_content = 206, + multiple_choices = 300, + moved_permanently = 301, + moved_temporarily = 302, + not_modified = 304, + bad_request = 400, + unauthorized = 401, + forbidden = 403, + not_found = 404, + not_supported = 405, + not_acceptable = 406, + request_timeout = 408, + precondition_failed = 412, + unsatisfiable_range = 416, + internal_server_error = 500, + not_implemented = 501, + bad_gateway = 502, + service_unavailable = 503, + space_unavailable = 507, +}; + +} // namespace http +} // namespace network +} // namespace boost + +#endif // BOOST_NETWORK_PROTOCOL_HTTP_STATUS_HPP_20180501 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy