Hobrasoft httpd server
Embedded HTTP server for Qt and C++
Public Member Functions | List of all members
Example::Httpd::RequestMapper Class Reference

Processes HTTP request. More...

#include <requestmapper.h>

Inheritance diagram for Example::Httpd::RequestMapper:
HobrasoftHttpd::HttpRequestHandler

Public Member Functions

 RequestMapper (HobrasoftHttpd::HttpConnection *parent)
 Construktor.
 
void service (HobrasoftHttpd::HttpRequest *request, HobrasoftHttpd::HttpResponse *response)
 Processes the request. More...
 
- Public Member Functions inherited from HobrasoftHttpd::HttpRequestHandler
 HttpRequestHandler (HttpConnection *parent)
 Konstruktor.
 
HttpResponseresponse ()
 Returns new instance of HttpResponse class. More...
 

Additional Inherited Members

- Protected Member Functions inherited from HobrasoftHttpd::HttpRequestHandler
HttpConnectionconnection () const
 Returns pointer to parent HttpConnection class.
 
const HttpSettingssettings () const
 Returns pointer to HttpSettings used in the HttpServer.
 

Detailed Description

Processes HTTP request.

Special requests to inner data are processed by application. Such services has to be implemented in your own classes.

Other general requests (static files) are processed by default implementation in HobrasoftHttpd::HttpRequestHandler.

Definition at line 33 of file requestmapper.h.

Member Function Documentation

◆ service()

void RequestMapper::service ( HobrasoftHttpd::HttpRequest request,
HobrasoftHttpd::HttpResponse response 
)
virtual

Processes the request.

Own specialized classes are created and called for dynamic content. General request handler is created for other static content requests.

Reimplemented from HobrasoftHttpd::HttpRequestHandler.

Definition at line 26 of file requestmapper.cpp.


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