Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: AA_DemoBoard DemoBoard HelloServerDemo DemoBoard_RangeIndicator ... more
HTTPServer Class Reference
The HTTPServer class. More...
#include <HTTPServer.h>
Inherits mbed::TCPListener, mbed::TCPListener, mbed::TCPListener, mbed::TCPListener, and mbed::TCPListener.
Public Member Functions | |
| HTTPServer (u16_t=80) | |
| Create a new server instance by default on port 80. | |
| virtual void | addHandler (HTTPHandler *handler) |
| Add a new content handler to handle requests. | |
| virtual void | registerField (char *name) |
| Register needed header fields to filter from a request header. | |
| virtual bool | isField (unsigned long h) const |
| A short lookup if the headerfield is registerd. | |
| HTTPServer (u16_t=80) | |
| Create a new server instance by default on port 80. | |
| virtual void | addHandler (HTTPHandler *handler) |
| Add a new content handler to handle requests. | |
| virtual void | registerField (char *name) |
| Register needed header fields to filter from a request header. | |
| virtual bool | isField (unsigned long h) const |
| A short lookup if the headerfield is registerd. | |
| HTTPServer (u16_t=80) | |
| Create a new server instance by default on port 80. | |
| virtual void | addHandler (HTTPHandler *handler) |
| Add a new content handler to handle requests. | |
| virtual void | registerField (char *name) |
| Register needed header fields to filter from a request header. | |
| virtual bool | isField (unsigned long h) const |
| A short lookup if the headerfield is registerd. | |
Static Public Member Functions | |
| static void | poll () |
| You have to call this method at least every 250ms to let the http server run. | |
| static void | poll () |
| You have to call this method at least every 250ms to let the http server run. | |
| static void | poll () |
| You have to call this method at leased every 250ms to let the http server run. | |
Detailed Description
The HTTPServer class.
It representates the top class of an HTTPServer.
Definition at line 262 of file precomp/HTTPServer/HTTPServer.h.
Constructor & Destructor Documentation
| HTTPServer | ( | u16_t | port = 80 ) |
Create a new server instance by default on port 80.
Definition at line 342 of file tag/13/HTTPServer/HTTPServer.cpp.
| HTTPServer | ( | u16_t | = 80 ) |
Create a new server instance by default on port 80.
| HTTPServer | ( | u16_t | = 80 ) |
Create a new server instance by default on port 80.
Member Function Documentation
| virtual void addHandler | ( | HTTPHandler * | handler ) | [virtual] |
Add a new content handler to handle requests.
Content handler are URL prefix specific. Have a look at HTTPRPC and HTTPFileSystemHandler for examples.
Definition at line 277 of file tag/13-precomp/HTTPServer/HTTPServer.h.
| virtual void addHandler | ( | HTTPHandler * | handler ) | [virtual] |
Add a new content handler to handle requests.
Content handler are URL prefix specific. Have a look at HTTPRPC and HTTPFileSystemHandler for examples.
Definition at line 277 of file tag/13/HTTPServer/HTTPServer.h.
| virtual void addHandler | ( | HTTPHandler * | handler ) | [virtual] |
Add a new content handler to handle requests.
Content handler are URL prefix specific. Have a look at HTTPRPC and HTTPFileSystemHandler for examples.
Definition at line 277 of file tag/7/HTTPServer/HTTPServer.h.
| virtual bool isField | ( | unsigned long | h ) | const [virtual] |
A short lookup if the headerfield is registerd.
Definition at line 293 of file tag/7/HTTPServer/HTTPServer.h.
| virtual bool isField | ( | unsigned long | h ) | const [virtual] |
A short lookup if the headerfield is registerd.
Definition at line 293 of file tag/13/HTTPServer/HTTPServer.h.
| virtual bool isField | ( | unsigned long | h ) | const [virtual] |
A short lookup if the headerfield is registerd.
Definition at line 293 of file tag/13-precomp/HTTPServer/HTTPServer.h.
| static void poll | ( | ) | [static] |
You have to call this method at leased every 250ms to let the http server run.
But I would recomend to call this function as fast as possible. This function is directly coupled to the answere time of your HTTPServer instance.
Definition at line 302 of file tag/7/HTTPServer/HTTPServer.h.
| static void poll | ( | ) | [static] |
You have to call this method at least every 250ms to let the http server run.
But I would recomend to call this function as fast as possible. This function is directly coupled to the answere time of your HTTPServer instance.
Definition at line 302 of file tag/13-precomp/HTTPServer/HTTPServer.h.
| static void poll | ( | ) | [static] |
You have to call this method at least every 250ms to let the http server run.
But I would recomend to call this function as fast as possible. This function is directly coupled to the answere time of your HTTPServer instance.
Definition at line 302 of file tag/13/HTTPServer/HTTPServer.h.
| virtual void registerField | ( | char * | name ) | [virtual] |
Register needed header fields to filter from a request header.
Should be called from HTTPHandler::reg()
Definition at line 286 of file tag/7/HTTPServer/HTTPServer.h.
| virtual void registerField | ( | char * | name ) | [virtual] |
Register needed header fields to filter from a request header.
Should be called from HTTPHandler::reg()
Definition at line 286 of file tag/13/HTTPServer/HTTPServer.h.
| virtual void registerField | ( | char * | name ) | [virtual] |
Register needed header fields to filter from a request header.
Should be called from HTTPHandler::reg()
Definition at line 286 of file tag/13-precomp/HTTPServer/HTTPServer.h.
Generated on Tue Jul 12 2022 16:06:31 by
1.7.2