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

#include <http.hpp>

Public Types

enum  { BODY, PIPE }
 

Public Member Functions

 Request ()
 
bool acceptsEncoding (const std::string &encoding) const
 Returns whether the encoding is considered acceptable in the response. More...
 
bool acceptsMediaType (const std::string &mediaType) const
 Returns whether the media type in the "Accept" header is considered acceptable in the response. More...
 
bool acceptsMediaType (const std::string &name, const std::string &mediaType) const
 Returns whether the media type in the name header is considered acceptable in the response. More...
 

Public Attributes

std::string method
 
URL url
 
Headers headers
 
bool keepAlive
 
Option< network::Addressclient
 
enum process::http::Request:: { ... }  type
 
std::string body
 
Option< Pipe::Readerreader
 

Member Enumeration Documentation

anonymous enum
Enumerator
BODY 
PIPE 

Constructor & Destructor Documentation

process::http::Request::Request ( )
inline

Member Function Documentation

bool process::http::Request::acceptsEncoding ( const std::string &  encoding) const

Returns whether the encoding is considered acceptable in the response.

See RFC 2616 section 14.3 for details.

bool process::http::Request::acceptsMediaType ( const std::string &  mediaType) const

Returns whether the media type in the "Accept" header is considered acceptable in the response.

See RFC 2616, section 14.1 for the details.

bool process::http::Request::acceptsMediaType ( const std::string &  name,
const std::string &  mediaType 
) const

Returns whether the media type in the name header is considered acceptable in the response.

The media type should have similar semantics as the "Accept" header. See RFC 2616, section 14.1 for the details.

Member Data Documentation

std::string process::http::Request::body
Option<network::Address> process::http::Request::client
Headers process::http::Request::headers
bool process::http::Request::keepAlive
std::string process::http::Request::method
Option<Pipe::Reader> process::http::Request::reader
enum { ... } process::http::Request::type
URL process::http::Request::url

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