boost::http_proto::response_view
A view to a valid HTTP response.
Synopsis
class response_view
: public message_view_base;
Base Classes
Name |
Description |
Provides read‐only access to common metadata in HTTP request and response messages. |
Types
Name |
Description |
A bidirectional iterator to HTTP fields. |
|
A view to an HTTP field. |
|
A bidirectional reverse iterator to HTTP fields. |
|
A forward range of matching fields. |
|
A value type which represent an HTTP field. |
|
A bidirectional iterator to HTTP fields. |
|
A view to an HTTP field. |
|
A bidirectional iterator to HTTP fields. |
Member Functions
Name |
Description |
|
Constructor. |
|
Destructor |
Assignment. |
|
Return the value of a field, or throws an exception. |
|
Return an iterator to the beginning. |
|
Return a string view representing the serialized data. |
|
Return true if the message is using a chunked transfer encoding. |
|
Return the number of matching fields. |
|
Return an iterator to the end. |
|
Return true if a field exists. |
|
Return an iterator to the matching element if it exists. |
|
Return a forward range containing values for all matching fields. |
|
Return an iterator to the matching element if it exists. |
|
Return true if semantics indicate connection persistence. |
|
Return metadata about the message. |
|
Return the type of payload of this message. |
|
Return the payload size. |
|
Return a reverse iterator to the beginning. |
|
Return the reason string |
|
Return a reverse iterator to the end. |
|
Return the number of fields in the container. |
|
Return the status code. |
|
Return the status code integer. |
|
Swap. |
|
Return the value of a field or a default if missing. |
|
Return the HTTP‐version. |
Friends
Name |
Description |
Swap. |
|
A parser for HTTP/1 responses. |
|
Mixin for modifiing HTTP responses. |
Description
Objects of this type represent a view to a HTTP response container. That is, it acts like a core::string_view
in terms of ownership. The caller is responsible for ensuring that the lifetime of the underlying buffer extends until it is no longer referenced.
See Also
Created with MrDocs