|
ACE_INet
6.1.2
|
#include <HTTP_Response.h>


Public Member Functions | |
| Response () | |
| Constructor. | |
| Response (const Status &status) | |
| Response (const ACE_CString &version, const Status &status=Status()) | |
| virtual | ~Response () |
| Destructor. | |
| void | reset () |
| Reset the response object. | |
| void | reset (const Status &status) |
| void | reset (const ACE_CString &version, const Status &status=Status()) |
| void | set_status (const Status &status) |
| Set the status. | |
| const Status & | get_status () const |
| Return the status. | |
| 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)). | |
| virtual void | write (std::ostream &str) const |
| Writes the HTTP response to the given stream. | |
| virtual bool | read (std::istream &str) |
Static Public Attributes | |
| static const ACE_CString | COOKIE = "Set-Cookie" |
Private Types | |
| enum | Limits { MAX_VERSION_LENGTH = 8, MAX_STATUS_LENGTH = 3, MAX_REASON_LENGTH = 512 } |
| Limits for reading a header. More... | |
Private Attributes | |
| Status | status_ |
|
private |
Limits for reading a header.
Reimplemented from ACE::INet::HeaderBase.
Constructor.
Reimplemented from ACE::INet::Response.
| ACE::HTTP::Response::Response | ( | const Status & | status | ) |
| ACE::HTTP::Response::Response | ( | const ACE_CString & | version, |
| const Status & | status = Status() |
||
| ) |
|
virtual |
Destructor.
Reimplemented from ACE::INet::Response.
| void ACE::HTTP::Response::add_cookie | ( | const ACE_CString & | cookie | ) |
Adds a Cookie header.
| void ACE::HTTP::Response::get_cookies | ( | ACE_Array< ACE_CString > & | cookies | ) | const |
Get cookies from Cookie header(s)).
|
inline |
Return the status.
|
virtual |
Reads the HTTP response from the given stream. 100 Continue responses are ignored.
Reimplemented from ACE::INet::HeaderBase.
|
inline |
Reset the response object.
|
inline |
|
inline |
|
inline |
Set the status.
|
virtual |
Writes the HTTP response to the given stream.
Reimplemented from ACE::INet::HeaderBase.
|
static |
|
private |
1.8.0-20120409