![]() |
PIP 5.6.1
Platform-Independent Primitives
|
Mutable HTTP message with setters and argument/header modifiers. More...
#include <pihttptypes.h>

Public Member Functions | |
| MessageMutable & | setMethod (PIHTTP::Method m) |
| Sets the HTTP method. | |
| MessageMutable & | setCode (PIHTTP::Code c) |
| Sets the HTTP status code. | |
| MessageMutable & | setPath (PIString p) |
| Sets the request path or response target path. | |
| MessageMutable & | setBody (PIByteArray b) |
| Sets the message body. | |
| const PIMap< PIString, PIString > & | headers () const |
| Returns all message headers. | |
| PIMap< PIString, PIString > & | arguments () |
| Returns a modifiable map of all arguments. | |
| const PIMap< PIString, PIString > & | arguments () const |
| Returns all arguments. | |
| const PIMap< PIString, PIString > & | queryArguments () const |
| Returns query arguments. | |
| const PIMap< PIString, PIString > & | pathArguments () const |
| Returns path arguments. | |
| PIMap< PIString, PIString > & | headers () |
| Returns a modifiable map of all message headers. | |
| MessageMutable & | addHeader (const PIString &header, const PIString &value) |
| Adds or replaces a header in the message. | |
| MessageMutable & | removeHeader (const PIString &header) |
| Removes a header from the message. | |
| PIMap< PIString, PIString > & | queryArguments () |
| Returns a modifiable map of query arguments. | |
| MessageMutable & | addQueryArgument (const PIString &arg, const PIString &value) |
| Adds or replaces a query argument. | |
| MessageMutable & | removeQueryArgument (const PIString &arg) |
| Removes a query argument. | |
| PIMap< PIString, PIString > & | pathArguments () |
| Returns a modifiable map of path arguments. | |
| MessageMutable & | addPathArgument (const PIString &arg, const PIString &value) |
| Adds or replaces a path argument. | |
| MessageMutable & | removePathArgument (const PIString &arg) |
| Removes a path argument. | |
Static Public Member Functions | |
| static MessageMutable | fromCode (PIHTTP::Code c) |
| Creates a message initialized from an HTTP status code. | |
| static MessageMutable | fromMethod (PIHTTP::Method m) |
| Creates a message initialized from an HTTP method. | |
Mutable HTTP message with setters and argument/header modifiers.