The lib with which to make LPC1768 a simple HTTP server. This have not yet implemented. fopen() DOESN'T WORK after EthernetInterface::connect() is called as using mbed-os 5.4~. See also https://os.mbed.com/questions/80658/HardFault-occurs-when-fopen-is-called-af/ or https://github.com/ARMmbed/mbed-os/issues/6578 and https://github.com/ARMmbed/mbed-os/issues/6624

Fork of HTTP_SERVER by Akifumi Takahashi

Embed: (wiki syntax)

« Back to documentation index

HttpServer Class Reference

HttpServer Class Reference

HttpServer class. More...

#include <HTTP_SERVER.h>

Public Member Functions

bool init ()
 HTTP SERVER Initialization.
bool run ()
 Run the surver service while listening flag is true.

Detailed Description

HttpServer class.

This is the class to make a mbed a simple HTTP Server.

Definition at line 20 of file HTTP_SERVER.h.


Member Function Documentation

bool init (  )

HTTP SERVER Initialization.

This function should be called first of all.

Returns:
result of init() as boolean.
Return values:
TRUESACCESS
FALSE

Definition at line 91 of file HTTP_SERVER.cpp.

bool run (  )

Run the surver service while listening flag is true.

Returns:
state ending.
Return values:
TRUEat error end.
FALSEat normal end.

Definition at line 130 of file HTTP_SERVER.cpp.