forked from boostorg/beast
Rename some basic_parser observers (API Change):
Some `basic_parser` member functions are renamed: * chunked() was is_chunked() * upgrade() was is_upgrade() * keep_alive() was is_keep_alive() Actions Required: * Rename member function invocations at call sites
This commit is contained in:
1 parent
6225c5bd2f
commit
5c14ab9f7c
5 files changed
+18
-13
No files matched your search
@@ -319,7 +319,7 @@ public:
|
||||
@ref is_header_done would return `true`.
|
||||
*/
|
||||
bool
|
||||
is_upgrade() const
|
||||
upgrade() const
|
||||
{
|
||||
return (f_ & flagConnectionUpgrade) != 0;
|
||||
}
|
||||
@@ -330,18 +330,21 @@ public:
|
||||
@ref is_header_done would return `true`.
|
||||
*/
|
||||
bool
|
||||
is_chunked() const
|
||||
chunked() const
|
||||
{
|
||||
return (f_ & flagChunked) != 0;
|
||||
}
|
||||
|
||||
/** Returns `true` if the message has keep-alive connection semantics.
|
||||
|
||||
This function always returns `false` if @ref need_eof would return
|
||||
`false`.
|
||||
|
||||
@note The return value is undefined unless
|
||||
@ref is_header_done would return `true`.
|
||||
*/
|
||||
bool
|
||||
is_keep_alive() const;
|
||||
keep_alive() const;
|
||||
|
||||
/** Returns the optional value of Content-Length if known.
|
||||
|
||||
|
||||
Reference in new issue
Block a user