Apache Mesos
Public Types | Public Member Functions | Public Attributes | List of all members
process::http::Response Struct Reference

#include <http.hpp>

Inheritance diagram for process::http::Response:
process::http::Accepted process::http::BadRequest process::http::Conflict process::http::Forbidden process::http::InternalServerError process::http::MethodNotAllowed process::http::NotAcceptable process::http::NotFound process::http::NotImplemented process::http::OK process::http::PreconditionFailed process::http::ServiceUnavailable process::http::TemporaryRedirect process::http::Unauthorized process::http::UnsupportedMediaType

Public Types

enum  { NONE, BODY, PATH, PIPE }
 

Public Member Functions

 Response ()
 
 Response (uint16_t _code)
 
 Response (const std::string &_body, uint16_t _code, const std::string &contentType="text/plain; charset=utf-8")
 

Public Attributes

std::string status
 
Headers headers
 
enum process::http::Response:: { ... }  type
 
std::string body
 
std::string path
 
Option< Pipe::Readerreader
 
uint16_t code
 

Member Enumeration Documentation

anonymous enum
Enumerator
NONE 
BODY 
PATH 
PIPE 

Constructor & Destructor Documentation

process::http::Response::Response ( )
inline
process::http::Response::Response ( uint16_t  _code)
inline
process::http::Response::Response ( const std::string &  _body,
uint16_t  _code,
const std::string &  contentType = "text/plain; charset=utf-8" 
)
inlineexplicit

Member Data Documentation

std::string process::http::Response::body
uint16_t process::http::Response::code
Headers process::http::Response::headers
std::string process::http::Response::path
Option<Pipe::Reader> process::http::Response::reader
std::string process::http::Response::status
enum { ... } process::http::Response::type

The documentation for this struct was generated from the following file: