DiCE API nvidia_logo_transpbg.gif Up
mi::http::IResponse_handler Class Referenceabstract

Response handlers can be used to modify responses generated by request handlers. More...

#include <http.h>

Inheritance diagram for mi::http::IResponse_handler:

Public Member Functions

virtual void handle (IConnection *connection)=0
 Handles a response on a connection. More...
 
- Public Member Functions inherited from mi::base::IInterface
virtual Uint32 retain () const =0
 Increments the reference count. More...
 
virtual Uint32 release () const =0
 Decrements the reference count. More...
 
virtual const IInterfaceget_interface (const Uuid &interface_id) const =0
 Acquires a const interface from another. More...
 
template<class T>
const T * get_interface () const
 Acquires a const interface from another. More...
 
virtual IInterfaceget_interface (const Uuid &interface_id)=0
 Acquires a mutable interface from another. More...
 
template<class T>
T * get_interface ()
 Acquires a mutable interface from another. More...
 
virtual Uuid get_iid () const =0
 Returns the interface ID of the most derived interface. More...
 

Additional Inherited Members

- Public Types inherited from mi::base::Interface_declare< 0xa9386278, ... >
typedef Interface_declare< id1, ... > Self
 Own type. More...
 
typedef Uuid_t< id1, ... > IID
 Declares the interface ID (IID) of this interface. More...
 
- Public Types inherited from mi::base::IInterface
typedef Uuid_t<0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0> IID
 Declares the interface ID (IID) of this interface. More...
 
- Static Public Member Functions inherited from mi::base::Interface_declare< 0xa9386278, ... >
static bool compare_iid (const Uuid &iid)
 Compares the interface ID iid against the interface ID of this interface and of its ancestors. More...
 
- Static Public Member Functions inherited from mi::base::IInterface
static bool compare_iid (const Uuid &iid)
 Compares the interface ID iid against the interface ID of this interface. More...
 

Detailed Description

Response handlers can be used to modify responses generated by request handlers.

For every response the handlers are asked if they want to modify the response. They will be asked in the order they where added. This all happens after a responsible request handler issued the response.

See also
mi::http::IServer::install(IResponse_handler*), mi::http::IServer::remove(IResponse_handler*)

Member Function Documentation

 handle()

virtual void mi::http::IResponse_handler::handle ( IConnection connection)
pure virtual

Handles a response on a connection.

Parameters
connectionThe connection on which the response is to be sent.