Ersa Wearable Platform
Embedded smartwatch firmware and application framework
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ersa::hal::IHttpServer Class Referenceabstract

#include <http_server.h>

Public Member Functions

virtual ~IHttpServer ()=default
 
virtual Result< void > begin (uint16_t port)=0
 
virtual void route (std::string_view path, HttpMethod method, HttpHandler handler, void *context)=0
 
virtual void routeNotFound (HttpHandler handler, void *context)=0
 
virtual void handleClient ()=0
 
virtual void stop ()=0
 
virtual bool hasArgument (std::string_view name) const =0
 
virtual std::string argument (std::string_view name) const =0
 
virtual void send (uint16_t status, std::string_view contentType, std::string_view body)=0
 

Detailed Description

Request/response server contract for configuration and local web apps.

Constructor & Destructor Documentation

◆ ~IHttpServer()

virtual ersa::hal::IHttpServer::~IHttpServer ( )
virtualdefault

Member Function Documentation

◆ argument()

virtual std::string ersa::hal::IHttpServer::argument ( std::string_view  name) const
pure virtual

◆ begin()

virtual Result< void > ersa::hal::IHttpServer::begin ( uint16_t  port)
pure virtual

◆ handleClient()

virtual void ersa::hal::IHttpServer::handleClient ( )
pure virtual

◆ hasArgument()

virtual bool ersa::hal::IHttpServer::hasArgument ( std::string_view  name) const
pure virtual

◆ route()

virtual void ersa::hal::IHttpServer::route ( std::string_view  path,
HttpMethod  method,
HttpHandler  handler,
void *  context 
)
pure virtual

◆ routeNotFound()

virtual void ersa::hal::IHttpServer::routeNotFound ( HttpHandler  handler,
void *  context 
)
pure virtual

◆ send()

virtual void ersa::hal::IHttpServer::send ( uint16_t  status,
std::string_view  contentType,
std::string_view  body 
)
pure virtual

◆ stop()

virtual void ersa::hal::IHttpServer::stop ( )
pure virtual

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