mirror of
https://github.com/boostorg/beast.git
synced 2025-08-02 14:24:31 +02:00
Newly constructed responses have a 200 OK result
This commit is contained in:
@@ -4,6 +4,7 @@ HTTP:
|
|||||||
|
|
||||||
* Tidy up set payload in http-server-fast
|
* Tidy up set payload in http-server-fast
|
||||||
* Refine Body::size specification
|
* Refine Body::size specification
|
||||||
|
* Newly constructed responses have a 200 OK result
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@@ -34,6 +34,10 @@ namespace http {
|
|||||||
the default fields container, those declarations are in
|
the default fields container, those declarations are in
|
||||||
@ref fields.
|
@ref fields.
|
||||||
|
|
||||||
|
Newly constructed header objects have version set to
|
||||||
|
HTTP/1.1. Newly constructed response objects also have
|
||||||
|
result code set to @ref status::ok.
|
||||||
|
|
||||||
A `header` includes the start-line and header-fields.
|
A `header` includes the start-line and header-fields.
|
||||||
*/
|
*/
|
||||||
#if BEAST_DOXYGEN
|
#if BEAST_DOXYGEN
|
||||||
@@ -343,7 +347,7 @@ private:
|
|||||||
void
|
void
|
||||||
swap(header<false, T>& m1, header<false, T>& m2);
|
swap(header<false, T>& m1, header<false, T>& m2);
|
||||||
|
|
||||||
status result_;
|
status result_ = status::ok;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -371,6 +375,10 @@ using response_header = header<false, Fields>;
|
|||||||
The `Body` template argument type determines the model used
|
The `Body` template argument type determines the model used
|
||||||
to read or write the content body of the message.
|
to read or write the content body of the message.
|
||||||
|
|
||||||
|
Newly constructed messages objects have version set to
|
||||||
|
HTTP/1.1. Newly constructed response objects also have
|
||||||
|
result code set to @ref status::ok.
|
||||||
|
|
||||||
@tparam isRequest `true` if this represents a request,
|
@tparam isRequest `true` if this represents a request,
|
||||||
or `false` if this represents a response. Some class data
|
or `false` if this represents a response. Some class data
|
||||||
members are conditionally present depending on this value.
|
members are conditionally present depending on this value.
|
||||||
|
Reference in New Issue
Block a user