![]() |
PIP 5.6.1
Platform-Independent Primitives
|
Immutable HTTP message view with accessors for method, path, headers and body. More...
#include <pihttptypes.h>

Public Member Functions | |
| PIHTTP::Method | method () const |
| Returns the HTTP method of the message. | |
| PIHTTP::Code | code () const |
| Returns the HTTP status code of the message. | |
| bool | isCodeInformational () const |
Returns true for informational status codes in the 1xx range. | |
| bool | isCodeSuccess () const |
Returns true for successful status codes in the 2xx range. | |
| bool | isCodeRedirection () const |
Returns true for redirection status codes in the 3xx range. | |
| bool | isCodeClientError () const |
Returns true for client error status codes in the 4xx range. | |
| bool | isCodeServerError () const |
Returns true for server error status codes in the 5xx range. | |
| bool | isCodeError () const |
Returns true for any client or server error status code. | |
| const PIString & | path () const |
| Returns the request path or response target path. | |
| PIStringList | pathList () const |
| Returns the path split into non-empty components. | |
| const PIByteArray & | body () const |
| Returns the message body. | |
| const PIMap< PIString, PIString > & | headers () const |
| Returns all message headers. | |
| const PIMap< PIString, PIString > & | queryArguments () const |
| Returns parsed query arguments from the URL. | |
| const PIMap< PIString, PIString > & | pathArguments () const |
| Returns extracted path arguments. | |
| const PIMap< PIString, PIString > & | arguments () const |
| Returns the combined argument map from query and path arguments. | |
Immutable HTTP message view with accessors for method, path, headers and body.