boost::http::request_base
Mixin for modifing HTTP requests.
Synopsis
Declared in <boost/http/request_base.hpp>
class request_base
: public message_base
Base Classes
| Name | Description |
|---|---|
Mixin for modifing 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 method as a name constant. |
|
Return the method as a string. |
|
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 the |
|
Set whether the connection should stay open. |
|
Set the maximum allowed capacity in bytes. |
|
|
|
Set the payload size. |
|
Set the method, target, and version of the request. |
|
Set the target string of the request. |
|
Set the HTTP version of the request. |
|
Remove excess capacity. |
|
Return the number of fields in the container. |
|
Return the request‐target string. |
|
Return the value of a field or a default if missing. |
|
Return the HTTP‐version. |
Friends
| Name | Description |
|---|---|
A modifiable static container for HTTP requests. |
|
A modifiable container for HTTP requests. |
Derived Classes
| Name | Description |
|---|---|
A modifiable container for HTTP requests. |
|
A modifiable static container for HTTP requests. |
See Also
message_base, request, static_request.
Created with MrDocs