boost::http_proto::message_base
Mixin for modifiing common metadata in HTTP request and response messages.
Synopsis
class message_base
: public fields_base
, public message_view_base;
Base Classes
Name |
Description |
Mixin for modifiable HTTP fields. |
|
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 |
Append a header. |
|
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 the total number of bytes allocated by the container. |
|
Return true if the message is using a chunked transfer encoding. |
|
Clear contents while preserving the capacity. |
|
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. |
|
Insert a header. |
|
Return true if semantics indicate connection persistence. |
|
Return the maximum allowed capacity in bytes. |
|
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 a reverse iterator to the end. |
|
Adjust the capacity without changing the size. |
|
Set a header value. |
|
Set whether the payload is chunked. |
|
Set the Content‐Length to the specified value. |
|
Set whether the connection should stay open. |
|
Set the maximum allowed capacity in bytes. |
|
Set the payload size. |
|
Remove excess capacity. |
|
Return the number of fields in the container. |
|
Return the value of a field or a default if missing. |
|
Return the HTTP‐version. |
Friends
Name |
Description |
Mixin for modifiing HTTP responses. |
|
Mixin for modifiing HTTP requests. |
Derived Classes
Name |
Description |
Mixin for modifiing HTTP requests. |
|
Mixin for modifiing HTTP responses. |
Description
This type is useful for modifying common properties shared by both requests and responses.
See Also
message_view_base
, response
, request
, static_response
, static_request
, metadata
.
Created with MrDocs