bitz-server  2.0.0
Classes | Public Types | Public Member Functions | List of all members
icap::ResponseHeader Class Reference
Inheritance diagram for icap::ResponseHeader:
icap::Header

Classes

struct  response_t
 

Public Types

enum  status_t {
  CONTINUE = 100, OK = 200, NO_CONTENT = 204, BAD_REQUEST = 400,
  NOT_FOUND = 404, NOT_ALLOWED = 405, REQ_TIMEOUT = 408, SERVER_ERROR = 500,
  NOT_IMPLEMENTED = 501, BAD_GATEWAY = 502, SERVICE_OVERLOADED = 503, NOT_SUPPORTED = 505
}
 
- Public Types inherited from icap::Header
typedef std::map< std::string, std::string > headers_t
 
typedef headers_t::iterator headers_index_t
 
typedef std::map< std::string, int > encapsulated_header_t
 
typedef encapsulated_header_t::iterator encapsulated_header_index_t
 
typedef std::pair< std::string, int > encapsulated_header_data_t
 

Public Member Functions

 ResponseHeader (status_t status)
 
const std::string & protocol () const throw ()
 
const status_t & status () const throw ()
 
- Public Member Functions inherited from icap::Header
const headers_t & headers () const throw ()
 
const std::string value (const std::string &key) throw ()
 
const int encapsulated_header (const std::string &entity) throw ()
 
virtual void attach (std::string key, std::string value) throw ()
 
virtual bool attach_encapsulated (std::string header_value) throw ()
 
virtual void update_encapsulated (const payload_t &payload) throw ()
 
virtual bool remove (std::string key) throw ()
 
virtual const std::string encapsulated_header_str () throw ()
 
virtual std::vector< encapsulated_header_data_t > sort_encapsulated_header ()
 

Additional Inherited Members

- Protected Attributes inherited from icap::Header
headers_t _headers
 
encapsulated_header_t _encapsulated
 

Member Function Documentation

◆ protocol()

const std::string & icap::ResponseHeader::protocol ( ) const
throw (
)

Return the response protocol

Returns
protocol

◆ status()

const ResponseHeader::status_t & icap::ResponseHeader::status ( ) const
throw (
)

Return the response status

Returns
status