Simple HTTP example
Dependencies: LWIPInterface NetworkSocketAPI events funcptr mbed-rtos mbed
SimpleHTTP Class Reference
Simple HTTP server. More...
#include <SimpleHTTP.h>
Public Member Functions | |
SimpleHTTP (NetworkStack *stack) | |
SimpleHTTP server lifetime. | |
void | start () |
Start serving HTTP requests. | |
void | stop () |
Stop serving HTTP requests. | |
void | get (const char *path, FuncPtr< int(char *, unsigned)> callback) |
Attach on GET request. | |
unsigned | get_errors () |
Get stats. |
Detailed Description
Simple HTTP server.
Definition at line 16 of file SimpleHTTP.h.
Constructor & Destructor Documentation
SimpleHTTP | ( | NetworkStack * | stack ) |
SimpleHTTP server lifetime.
Definition at line 5 of file SimpleHTTP.cpp.
Member Function Documentation
void get | ( | const char * | path, |
FuncPtr< int(char *, unsigned)> | callback | ||
) |
Attach on GET request.
Definition at line 129 of file SimpleHTTP.cpp.
unsigned get_errors | ( | ) |
Get stats.
Definition at line 113 of file SimpleHTTP.cpp.
void start | ( | ) |
Start serving HTTP requests.
Definition at line 14 of file SimpleHTTP.cpp.
void stop | ( | ) |
Stop serving HTTP requests.
Definition at line 35 of file SimpleHTTP.cpp.
Generated on Sun Jul 17 2022 10:50:59 by 1.7.2