Sirikata
Public Member Functions
Sirikata::Command::HttpRequestListener Class Reference

#include <HttpServer.hpp>

Inheritance diagram for Sirikata::Command::HttpRequestListener:

List of all members.

Public Member Functions

virtual ~HttpRequestListener ()
virtual void onHttpRequest (HttpServer *server, HttpRequestID id, String &path, String &query, String &fragment, Headers &headers, String &body)=0
 Invoked when a complete HttpRequest is ready for processing.

Constructor & Destructor Documentation

virtual Sirikata::Command::HttpRequestListener::~HttpRequestListener ( ) [inline, virtual]

Member Function Documentation

virtual void Sirikata::Command::HttpRequestListener::onHttpRequest ( HttpServer server,
HttpRequestID  id,
String path,
String query,
String fragment,
Headers headers,
String body 
) [pure virtual]

Invoked when a complete HttpRequest is ready for processing.

Parameters:
serverthe HttpServer this request originated from
idthe unique ID for this request. Should be included when triggering the response
pathpath part of the requested URL
query(encoded) query string part of the requested URL
fragmentfragment part of the requested URL
headersmap of headers included with the request
bodythe body of the request
Note:
Parameters are passed as mutable references -- you are permitted to modify them. They will remain valid until you call HttpServer::response().

Implemented in Sirikata::Command::HttpCommander.

Referenced by Sirikata::Command::HttpServer::handleRequest().


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