forked from boostorg/beast
1 parent
f3eaa409d1
commit
58d42cc803
13 files changed
+72
-39
No files matched your search
@@ -11,10 +11,10 @@
|
||||
#include <beast/core/static_string.hpp>
|
||||
#include <beast/core/type_traits.hpp>
|
||||
#include <beast/core/detail/clamp.hpp>
|
||||
#include <beast/core/detail/config.hpp>
|
||||
#include <beast/http/error.hpp>
|
||||
#include <beast/http/rfc7230.hpp>
|
||||
#include <boost/asio/buffer.hpp>
|
||||
#include <boost/config.hpp>
|
||||
#include <algorithm>
|
||||
#include <utility>
|
||||
|
||||
@@ -178,7 +178,7 @@ loop:
|
||||
return 0;
|
||||
}
|
||||
state_ = state::header;
|
||||
BOOST_FALLTHROUGH;
|
||||
BEAST_FALLTHROUGH;
|
||||
|
||||
case state::header:
|
||||
parse_header(p, n, ec);
|
||||
@@ -191,7 +191,7 @@ loop:
|
||||
if(ec)
|
||||
goto done;
|
||||
state_ = state::body;
|
||||
BOOST_FALLTHROUGH;
|
||||
BEAST_FALLTHROUGH;
|
||||
|
||||
case state::body:
|
||||
parse_body(p, n, ec);
|
||||
@@ -204,7 +204,7 @@ loop:
|
||||
if(ec)
|
||||
goto done;
|
||||
state_ = state::body_to_eof;
|
||||
BOOST_FALLTHROUGH;
|
||||
BEAST_FALLTHROUGH;
|
||||
|
||||
case state::body_to_eof:
|
||||
parse_body_to_eof(p, n, ec);
|
||||
@@ -217,7 +217,7 @@ loop:
|
||||
if(ec)
|
||||
goto done;
|
||||
state_ = state::chunk_header;
|
||||
BOOST_FALLTHROUGH;
|
||||
BEAST_FALLTHROUGH;
|
||||
|
||||
case state::chunk_header:
|
||||
parse_chunk_header(p, n, ec);
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
|
||||
#include <beast/http/error.hpp>
|
||||
#include <beast/http/status.hpp>
|
||||
#include <beast/core/detail/config.hpp>
|
||||
#include <boost/assert.hpp>
|
||||
#include <boost/config.hpp>
|
||||
#include <ostream>
|
||||
|
||||
namespace beast {
|
||||
@@ -63,7 +63,7 @@ get(error_code& ec, Visit&& visit)
|
||||
if(frd_->chunked())
|
||||
goto go_init_c;
|
||||
s_ = do_init;
|
||||
BOOST_FALLTHROUGH;
|
||||
BEAST_FALLTHROUGH;
|
||||
}
|
||||
|
||||
case do_init:
|
||||
@@ -86,7 +86,7 @@ get(error_code& ec, Visit&& visit)
|
||||
frd_->get(),
|
||||
result->first};
|
||||
s_ = do_header;
|
||||
BOOST_FALLTHROUGH;
|
||||
BEAST_FALLTHROUGH;
|
||||
}
|
||||
|
||||
case do_header:
|
||||
@@ -108,7 +108,7 @@ get(error_code& ec, Visit&& visit)
|
||||
return;
|
||||
}
|
||||
s_ = do_body + 1;
|
||||
BOOST_FALLTHROUGH;
|
||||
BEAST_FALLTHROUGH;
|
||||
|
||||
case do_body + 1:
|
||||
{
|
||||
@@ -120,7 +120,7 @@ get(error_code& ec, Visit&& visit)
|
||||
more_ = result->second;
|
||||
v_ = cb1_t{result->first};
|
||||
s_ = do_body + 2;
|
||||
BOOST_FALLTHROUGH;
|
||||
BEAST_FALLTHROUGH;
|
||||
}
|
||||
|
||||
case do_body + 2:
|
||||
@@ -162,7 +162,7 @@ get(error_code& ec, Visit&& visit)
|
||||
result->first,
|
||||
detail::chunk_crlf()};
|
||||
s_ = do_header_c;
|
||||
BOOST_FALLTHROUGH;
|
||||
BEAST_FALLTHROUGH;
|
||||
}
|
||||
|
||||
case do_header_c:
|
||||
@@ -184,7 +184,7 @@ get(error_code& ec, Visit&& visit)
|
||||
return;
|
||||
}
|
||||
s_ = do_body_c + 1;
|
||||
BOOST_FALLTHROUGH;
|
||||
BEAST_FALLTHROUGH;
|
||||
|
||||
case do_body_c + 1:
|
||||
{
|
||||
@@ -209,7 +209,7 @@ get(error_code& ec, Visit&& visit)
|
||||
result->first,
|
||||
detail::chunk_crlf()};
|
||||
s_ = do_body_c + 2;
|
||||
BOOST_FALLTHROUGH;
|
||||
BEAST_FALLTHROUGH;
|
||||
}
|
||||
|
||||
case do_body_c + 2:
|
||||
@@ -231,7 +231,7 @@ get(error_code& ec, Visit&& visit)
|
||||
}(),
|
||||
detail::chunk_crlf()};
|
||||
s_ = do_final_c + 1;
|
||||
BOOST_FALLTHROUGH;
|
||||
BEAST_FALLTHROUGH;
|
||||
|
||||
case do_final_c + 1:
|
||||
visit(ec, boost::get<ch2_t>(v_));
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#ifndef BEAST_HTTP_IMPL_STATUS_IPP
|
||||
#define BEAST_HTTP_IMPL_STATUS_IPP
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <beast/core/detail/config.hpp>
|
||||
#include <boost/throw_exception.hpp>
|
||||
|
||||
namespace beast {
|
||||
@@ -25,7 +25,7 @@ int_to_status(unsigned v)
|
||||
case status::continue_:
|
||||
case status::switching_protocols:
|
||||
case status::processing:
|
||||
BOOST_FALLTHROUGH;
|
||||
BEAST_FALLTHROUGH;
|
||||
|
||||
// 2xx
|
||||
case status::ok:
|
||||
@@ -38,7 +38,7 @@ int_to_status(unsigned v)
|
||||
case status::multi_status:
|
||||
case status::already_reported:
|
||||
case status::im_used:
|
||||
BOOST_FALLTHROUGH;
|
||||
BEAST_FALLTHROUGH;
|
||||
|
||||
// 3xx
|
||||
case status::multiple_choices:
|
||||
@@ -49,7 +49,7 @@ int_to_status(unsigned v)
|
||||
case status::use_proxy:
|
||||
case status::temporary_redirect:
|
||||
case status::permanent_redirect:
|
||||
BOOST_FALLTHROUGH;
|
||||
BEAST_FALLTHROUGH;
|
||||
|
||||
// 4xx
|
||||
case status::bad_request:
|
||||
@@ -81,7 +81,7 @@ int_to_status(unsigned v)
|
||||
case status::connection_closed_without_response:
|
||||
case status::unavailable_for_legal_reasons:
|
||||
case status::client_closed_request:
|
||||
BOOST_FALLTHROUGH;
|
||||
BEAST_FALLTHROUGH;
|
||||
|
||||
// 5xx
|
||||
case status::internal_server_error:
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#ifndef BEAST_HTTP_IMPL_VERB_IPP
|
||||
#define BEAST_HTTP_IMPL_VERB_IPP
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <beast/core/detail/config.hpp>
|
||||
#include <boost/throw_exception.hpp>
|
||||
#include <stdexcept>
|
||||
|
||||
@@ -156,7 +156,7 @@ string_to_verb(string_view v)
|
||||
return verb::connect;
|
||||
if(eq(v, "PY"))
|
||||
return verb::copy;
|
||||
BOOST_FALLTHROUGH;
|
||||
BEAST_FALLTHROUGH;
|
||||
|
||||
default:
|
||||
break;
|
||||
@@ -217,7 +217,7 @@ string_to_verb(string_view v)
|
||||
case 'O':
|
||||
if(eq(v, "VE"))
|
||||
return verb::move;
|
||||
BOOST_FALLTHROUGH;
|
||||
BEAST_FALLTHROUGH;
|
||||
|
||||
default:
|
||||
break;
|
||||
@@ -261,7 +261,7 @@ string_to_verb(string_view v)
|
||||
return verb::purge;
|
||||
if(eq(v, "T"))
|
||||
return verb::put;
|
||||
BOOST_FALLTHROUGH;
|
||||
BEAST_FALLTHROUGH;
|
||||
|
||||
default:
|
||||
break;
|
||||
|
||||
@@ -14,11 +14,11 @@
|
||||
#include <beast/core/handler_alloc.hpp>
|
||||
#include <beast/core/handler_ptr.hpp>
|
||||
#include <beast/core/type_traits.hpp>
|
||||
#include <beast/core/detail/config.hpp>
|
||||
#include <boost/asio/handler_alloc_hook.hpp>
|
||||
#include <boost/asio/handler_continuation_hook.hpp>
|
||||
#include <boost/asio/handler_invoke_hook.hpp>
|
||||
#include <boost/asio/write.hpp>
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/optional.hpp>
|
||||
#include <boost/throw_exception.hpp>
|
||||
#include <ostream>
|
||||
@@ -320,7 +320,7 @@ operator()(error_code ec,
|
||||
|
||||
case 2:
|
||||
state_ = 3;
|
||||
BOOST_FALLTHROUGH;
|
||||
BEAST_FALLTHROUGH;
|
||||
|
||||
case 3:
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user