forked from boostorg/beast
Tidy up FieldsReader doc
This commit is contained in:
@@ -5,6 +5,7 @@ Version 78:
|
|||||||
* Use make_unique_noinit
|
* Use make_unique_noinit
|
||||||
* Fix warning in zlib
|
* Fix warning in zlib
|
||||||
* Header file tidying
|
* Header file tidying
|
||||||
|
* Tidy up FieldsReader doc
|
||||||
|
|
||||||
HTTP:
|
HTTP:
|
||||||
|
|
||||||
|
@@ -12,6 +12,12 @@ representing the complete serialized HTTP/1 header for a set of fields.
|
|||||||
The implementation constructs an instance of this type when needed, and
|
The implementation constructs an instance of this type when needed, and
|
||||||
calls into it once to retrieve the buffers.
|
calls into it once to retrieve the buffers.
|
||||||
|
|
||||||
|
[heading Associated Types]
|
||||||
|
|
||||||
|
* __FieldsReader__
|
||||||
|
|
||||||
|
[heading Requirements]
|
||||||
|
|
||||||
In this table:
|
In this table:
|
||||||
|
|
||||||
* `X` denotes a type that meets the requirements of [*FieldsReader].
|
* `X` denotes a type that meets the requirements of [*FieldsReader].
|
||||||
@@ -29,7 +35,7 @@ In this table:
|
|||||||
|
|
||||||
* `m` is a value of type [link beast.ref.beast__http__verb `verb`].
|
* `m` is a value of type [link beast.ref.beast__http__verb `verb`].
|
||||||
|
|
||||||
[table FieldsReader requirements
|
[table Valid expressions
|
||||||
[[expression][type][semantics, pre/post-conditions]]
|
[[expression][type][semantics, pre/post-conditions]]
|
||||||
[
|
[
|
||||||
[`X::const_buffers_type`]
|
[`X::const_buffers_type`]
|
||||||
@@ -56,14 +62,6 @@ In this table:
|
|||||||
response. The lifetime of `f` is guaranteed
|
response. The lifetime of `f` is guaranteed
|
||||||
to end no earlier than after the `X` is destroyed.
|
to end no earlier than after the `X` is destroyed.
|
||||||
]
|
]
|
||||||
][
|
|
||||||
[`a.chunked()`]
|
|
||||||
[`bool`]
|
|
||||||
[
|
|
||||||
Called once after construction, this function returns `true`
|
|
||||||
if the [*Transfer-Encoding] field is present, and the last
|
|
||||||
token in its value is "chunked".
|
|
||||||
]
|
|
||||||
][
|
][
|
||||||
[`a.get()`]
|
[`a.get()`]
|
||||||
[`X::const_buffers_type`]
|
[`X::const_buffers_type`]
|
||||||
@@ -73,18 +71,14 @@ In this table:
|
|||||||
representation of the HTTP request or response including
|
representation of the HTTP request or response including
|
||||||
the final carriage return linefeed sequence (`"\r\n"`).
|
the final carriage return linefeed sequence (`"\r\n"`).
|
||||||
]
|
]
|
||||||
][
|
]]
|
||||||
[`is_fields_reader<F>`]
|
|
||||||
[`std::true_type`]
|
|
||||||
[
|
|
||||||
An alias for `std::true_type` for `F`, otherwise an alias
|
|
||||||
for `std::false_type`.
|
|
||||||
]
|
|
||||||
]
|
|
||||||
]
|
|
||||||
|
|
||||||
[heading Exemplar]
|
[heading Exemplar]
|
||||||
|
|
||||||
[concept_FieldsReader]
|
[concept_FieldsReader]
|
||||||
|
|
||||||
|
[heading Models]
|
||||||
|
|
||||||
|
* [link beast.ref.beast__http__basic_fields.reader `basic_fields::reader`]
|
||||||
|
|
||||||
[endsect]
|
[endsect]
|
||||||
|
@@ -278,10 +278,6 @@ struct FieldsReader
|
|||||||
// Constructor for responses
|
// Constructor for responses
|
||||||
FieldsReader(F const& f, unsigned version, unsigned status);
|
FieldsReader(F const& f, unsigned version, unsigned status);
|
||||||
|
|
||||||
// Returns `true` if the payload uses the chunked Transfer-Encoding
|
|
||||||
bool
|
|
||||||
chunked();
|
|
||||||
|
|
||||||
// Returns `true` if keep-alive is indicated
|
// Returns `true` if keep-alive is indicated
|
||||||
bool
|
bool
|
||||||
keep_alive();
|
keep_alive();
|
||||||
|
Reference in New Issue
Block a user