summaryrefslogtreecommitdiff
path: root/ACE/protocols/ace/INet/HTTP_Response.inl
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/protocols/ace/INet/HTTP_Response.inl')
-rw-r--r--ACE/protocols/ace/INet/HTTP_Response.inl52
1 files changed, 52 insertions, 0 deletions
diff --git a/ACE/protocols/ace/INet/HTTP_Response.inl b/ACE/protocols/ace/INet/HTTP_Response.inl
new file mode 100644
index 00000000000..891e9a332d8
--- /dev/null
+++ b/ACE/protocols/ace/INet/HTTP_Response.inl
@@ -0,0 +1,52 @@
+// -*- C++ -*-
+//
+// $Id$
+
+ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+
+namespace ACE
+{
+ namespace HTTP
+ {
+
+ ACE_INLINE
+ void Response::reset ()
+ {
+ this->clear ();
+ this->set_version (EMPTY);
+ this->status_ = Status ();
+ }
+
+ ACE_INLINE
+ void Response::reset (const Status& status)
+ {
+ this->clear ();
+ this->set_version (EMPTY);
+ this->status_ = status;
+ }
+
+ ACE_INLINE
+ void Response::reset (const ACE_CString& version, const Status& status)
+ {
+ this->clear ();
+ this->set_version (version);
+ this->status_ = status;
+ }
+
+ ACE_INLINE
+ void Response::set_status(const Status& status)
+ {
+ this->status_ = status;
+ }
+
+ /// Return the status.
+ ACE_INLINE
+ const Status& Response::get_status() const
+ {
+ return this->status_;
+ }
+
+ }
+}
+
+ACE_END_VERSIONED_NAMESPACE_DECL