// -*- C++ -*-
//
// $Id: HTTP_Response.inl 90450 2010-06-08 07:25:58Z mcorino $

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
