mirror of
https://github.com/boostorg/beast.git
synced 2025-08-05 15:54:46 +02:00
Remove serializer::chunked (API Change):
* The function serializer::chunked is removed, since it is redundant. Actions Required: * Call serializer::get::chunked instead of serializer::chunked
This commit is contained in:
@@ -5,10 +5,12 @@ Version 128:
|
|||||||
API Changes:
|
API Changes:
|
||||||
|
|
||||||
* Remove serializer::keep_alive
|
* Remove serializer::keep_alive
|
||||||
|
* Remove serializer::chunked
|
||||||
|
|
||||||
Actions Required:
|
Actions Required:
|
||||||
|
|
||||||
* Call message::keep_alive instead of serializer::keep_alive
|
* Call message::keep_alive instead of serializer::keep_alive
|
||||||
|
* Call serializer::get::chunked instead of serializer::chunked
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@@ -410,7 +410,7 @@ operator()()
|
|||||||
return detail::async_write_some(
|
return detail::async_write_some(
|
||||||
sock_, sr_, std::move(*this));
|
sock_, sr_, std::move(*this));
|
||||||
}
|
}
|
||||||
if(sr_.chunked())
|
if(sr_.get().chunked())
|
||||||
{
|
{
|
||||||
return detail::async_write_some(
|
return detail::async_write_some(
|
||||||
sock_, sr_, std::move(*this));
|
sock_, sr_, std::move(*this));
|
||||||
@@ -501,7 +501,7 @@ write_some(
|
|||||||
return bytes_transferred;
|
return bytes_transferred;
|
||||||
return bytes_transferred;
|
return bytes_transferred;
|
||||||
}
|
}
|
||||||
if(sr.chunked())
|
if(sr.get().chunked())
|
||||||
{
|
{
|
||||||
auto const bytes_transferred =
|
auto const bytes_transferred =
|
||||||
detail::write_some(sock, sr, ec);
|
detail::write_some(sock, sr, ec);
|
||||||
|
@@ -77,8 +77,7 @@ next(error_code& ec, Visit&& visit)
|
|||||||
{
|
{
|
||||||
frdinit(std::integral_constant<bool,
|
frdinit(std::integral_constant<bool,
|
||||||
isRequest>{});
|
isRequest>{});
|
||||||
chunked_ = m_.chunked();
|
if(m_.chunked())
|
||||||
if(chunked_)
|
|
||||||
goto go_init_c;
|
goto go_init_c;
|
||||||
s_ = do_init;
|
s_ = do_init;
|
||||||
BOOST_BEAST_FALLTHROUGH;
|
BOOST_BEAST_FALLTHROUGH;
|
||||||
|
@@ -186,7 +186,6 @@ private:
|
|||||||
int s_ = do_construct;
|
int s_ = do_construct;
|
||||||
bool split_ = false;
|
bool split_ = false;
|
||||||
bool header_done_ = false;
|
bool header_done_ = false;
|
||||||
bool chunked_;
|
|
||||||
bool more_;
|
bool more_;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@@ -292,17 +291,6 @@ public:
|
|||||||
return s_ == do_complete;
|
return s_ == do_complete;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Return `true` if the serializer will apply chunk-encoding.
|
|
||||||
|
|
||||||
This function may only be called if @ref is_header_done
|
|
||||||
would return `true`.
|
|
||||||
*/
|
|
||||||
bool
|
|
||||||
chunked()
|
|
||||||
{
|
|
||||||
return chunked_;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Returns the next set of buffers in the serialization.
|
/** Returns the next set of buffers in the serialization.
|
||||||
|
|
||||||
This function will attempt to call the `visit` function
|
This function will attempt to call the `visit` function
|
||||||
|
Reference in New Issue
Block a user