Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
RootHandler Class Reference

#include <UrlHandler.h>

Inheritance diagram for RootHandler:
UrlHandler

Public Member Functions

bool canHandle (const char *method, const char *url) override
 
int handle (Request *request, MHD_Connection *connection, const char *url, const char *method, const char *upload_data, size_t *upload_data_size) override
 
- Public Member Functions inherited from UrlHandler
virtual ~UrlHandler ()
 
virtual bool canHandle (const char *method, const char *url)=0
 
virtual int handle (Request *request, MHD_Connection *connection, const char *url, const char *method, const char *upload_data, size_t *upload_data_size)=0
 

Detailed Description

Definition at line 138 of file UrlHandler.h.

Member Function Documentation

◆ canHandle()

bool RootHandler::canHandle ( const char *  method,
const char *  url 
)
overridevirtual

Implements UrlHandler.

Definition at line 16 of file RootHandler.cpp.

16 {
17 return 0 == strcmp(method, MHD_HTTP_METHOD_GET) &&
18 0 == strcmp(url, "/");
19}

◆ handle()

int RootHandler::handle ( Request request,
MHD_Connection *  connection,
const char *  url,
const char *  method,
const char *  upload_data,
size_t *  upload_data_size 
)
overridevirtual

Implements UrlHandler.

Definition at line 21 of file RootHandler.cpp.

23 {
24 return SendTemplate(connection);
25}
int SendTemplate(MHD_Connection *connection, bool redirect, const char *redirectUrl)
Definition: Response.cpp:80

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