|
ACE_INet 6.0.3
|
#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_ |
enum ACE::HTTP::Response::Limits [private] |
Limits for reading a header.
Reimplemented from ACE::INet::HeaderBase.
| ACE::HTTP::Response::Response | ( | ) |
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() |
||
| ) |
| ACE::HTTP::Response::~Response | ( | ) | [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)).
| const Status & ACE::HTTP::Response::get_status | ( | ) | const [inline] |
Return the status.
| virtual bool ACE::HTTP::Response::read | ( | std::istream & | str | ) | [virtual] |
Reads the HTTP response from the given stream. 100 Continue responses are ignored.
Reimplemented from ACE::INet::HeaderBase.
| void ACE::HTTP::Response::reset | ( | ) | [inline] |
Reset the response object.
| void ACE::HTTP::Response::reset | ( | const Status & | status | ) | [inline] |
| void ACE::HTTP::Response::reset | ( | const ACE_CString & | version, |
| const Status & | status = Status() |
||
| ) | [inline] |
| void ACE::HTTP::Response::set_status | ( | const Status & | status | ) | [inline] |
Set the status.
| virtual void ACE::HTTP::Response::write | ( | std::ostream & | str | ) | const [virtual] |
Writes the HTTP response to the given stream.
Reimplemented from ACE::INet::HeaderBase.
const ACE_CString ACE::HTTP::Response::COOKIE = "Set-Cookie" [static] |
Status ACE::HTTP::Response::status_ [private] |
1.7.4