Apache Mesos
Public Member Functions | Public Attributes | List of all members
process::HttpEvent Struct Reference

#include <event.hpp>

Inheritance diagram for process::HttpEvent:
process::Event

Public Member Functions

 HttpEvent (http::Request *_request, Promise< http::Response > *_response)
 
 HttpEvent (HttpEvent &&)=default
 
 HttpEvent (const HttpEvent &)=delete
 
HttpEventoperator= (HttpEvent &&)=default
 
HttpEventoperator= (const HttpEvent &)=delete
 
virtual ~HttpEvent ()
 
void visit (EventVisitor *visitor) const override
 
void consume (EventConsumer *consumer)&&override
 
- Public Member Functions inherited from process::Event
virtual ~Event ()
 
template<typename T >
bool is () const
 
template<typename T >
const T & as () const
 
 operator JSON::Object () const
 

Public Attributes

std::unique_ptr< http::Requestrequest
 
std::unique_ptr< Promise< http::Response > > response
 

Constructor & Destructor Documentation

process::HttpEvent::HttpEvent ( http::Request _request,
Promise< http::Response > *  _response 
)
inline
process::HttpEvent::HttpEvent ( HttpEvent &&  )
default
process::HttpEvent::HttpEvent ( const HttpEvent )
delete
virtual process::HttpEvent::~HttpEvent ( )
inlinevirtual

Member Function Documentation

void process::HttpEvent::consume ( EventConsumer consumer)
inlineoverridevirtual

Implements process::Event.

HttpEvent& process::HttpEvent::operator= ( HttpEvent &&  )
default
HttpEvent& process::HttpEvent::operator= ( const HttpEvent )
delete
void process::HttpEvent::visit ( EventVisitor visitor) const
inlineoverridevirtual

Implements process::Event.

Member Data Documentation

std::unique_ptr<http::Request> process::HttpEvent::request
std::unique_ptr<Promise<http::Response> > process::HttpEvent::response

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