FlightGear next
flightgear::http::RunUriHandler Class Reference

#include <RunUriHandler.hxx>

Inherits flightgear::http::URIHandler.

Public Member Functions

 RunUriHandler (const std::string &uri="/run.cgi")
 
virtual bool handleRequest (const HTTPRequest &request, HTTPResponse &response, Connection *connection)
 This method gets called from the httpd if a request has been detected on the connection.
 
- Public Member Functions inherited from flightgear::http::URIHandler
 URIHandler (const std::string &uri)
 
virtual ~URIHandler ()
 
virtual bool handleGetRequest (const HTTPRequest &request, HTTPResponse &response, Connection *connection)
 Convenience method for GET Requests, gets called by handleRequest if not overridden.
 
virtual bool handlePutRequest (const HTTPRequest &request, HTTPResponse &response, Connection *connection)
 Convenience method for PUT Requests, gets called by handleRequest if not overridden.
 
virtual bool poll (Connection *connection)
 This method gets called from the httpd if the preceding handleRequest() or poll() method returned false.
 
const std::string & getUri () const
 Getter for the URI this handler serves.
 

Detailed Description

Definition at line 29 of file RunUriHandler.hxx.

Constructor & Destructor Documentation

◆ RunUriHandler()

flightgear::http::RunUriHandler::RunUriHandler ( const std::string & uri = "/run.cgi")
inline

Definition at line 31 of file RunUriHandler.hxx.

Member Function Documentation

◆ handleRequest()

bool flightgear::http::RunUriHandler::handleRequest ( const HTTPRequest & request,
HTTPResponse & response,
Connection * connection )
virtual

This method gets called from the httpd if a request has been detected on the connection.

Parameters
requestThe HTTP Request filled in by the httpd
responsethe HTTP Response to be filled in by the hander
connectionConnection specific information, can be used to store persistent state
Returns
true if the request has been completely answered, false to get poll()ed

Reimplemented from flightgear::http::URIHandler.

Definition at line 36 of file RunUriHandler.cxx.


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