Public Member Functions |
| | Request () |
| | Constructor; creates a GET / HTTP/1.0 HTTP request.
|
| | Request (const ACE_CString &version) |
| | Constructor; creates a GET request with given version.
|
| | Request (const ACE_CString &method, const ACE_CString &uri) |
| | Constructor; creates a HTTP/1.0 request with given method and URI.
|
| | Request (const ACE_CString &method, const ACE_CString &uri, const ACE_CString &version) |
| | Constructor; creates an HTTP request with given method, URI and version.
|
| virtual | ~Request () |
| | Destructor.
|
| void | reset () |
| | Reset the request object.
|
| void | reset (const ACE_CString &version) |
| void | reset (const ACE_CString &method, const ACE_CString &uri) |
| void | reset (const ACE_CString &method, const ACE_CString &uri, const ACE_CString &version) |
| void | set_method (const ACE_CString &method) |
| | Set the method.
|
| const ACE_CString & | get_method () const |
| | Return the method.
|
| void | set_URI (const ACE_CString &uri) |
| | Set the request URI.
|
| const ACE_CString & | get_URI () const |
| | Return the request URI.
|
| void | set_host (const ACE_CString &host) |
| | Set the Host header field.
|
| void | set_host (const ACE_CString &host, u_short port) |
| bool | has_host () const |
| | Returns true if Host header field has been set.
|
| ACE_CString | get_host () const |
| | Returns the value of the Host header field.
|
| void | add_cookie (const ACE_CString &cookie) |
| | Adds a Cookie header.
|
| void | get_cookies (ACE_Array< ACE_CString > &cookies) const |
| | Get cookies from Cookie header(s).
|
| bool | has_credentials () const |
| void | get_credentials (ACE_CString &scheme, ACE_CString &auth_info) const |
| | Returns the authentication scheme and authentication information.
|
| void | set_credentials (const ACE_CString &scheme, const ACE_CString &auth_info) |
| | Set the authentication scheme and information.
|
| void | write (std::ostream &str) const |
| | Writes the HTTP request to the given stream.
|
| bool | read (std::istream &str) |
Static Public Attributes |
| static const ACE_CString | HTTP_GET = "GET" |
| static const ACE_CString | HTTP_HEAD = "HEAD" |
| static const ACE_CString | HTTP_PUT = "PUT" |
| static const ACE_CString | HTTP_POST = "POST" |
| static const ACE_CString | HTTP_OPTIONS = "OPTIONS" |
| static const ACE_CString | HTTP_DELETE = "DELETE" |
| static const ACE_CString | HTTP_TRACE = "TRACE" |
| static const ACE_CString | HTTP_CONNECT = "CONNECT" |
| static const ACE_CString | HOST = "Host" |
| static const ACE_CString | COOKIE = "Cookie" |
| static const ACE_CString | AUTHORIZATION = "Authorization" |
Private Types |
| enum | Limits { MAX_METHOD_LENGTH = 32,
MAX_URI_LENGTH = 4096,
MAX_VERSION_LENGTH = 8
} |
| | Limits for reading a header. More...
|
Private Attributes |
| ACE_CString | method_ |
| ACE_CString | uri_ |