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.
Dependencies: mbed-rtos EthernetInterface FatFileSystemCpp MCP23S17 SDFileSystem mbed
Fork of HTTPServerHelloWorld by
Diff: Services/Network/RestServer.cpp
- Revision:
- 6:b2c4687b421d
- Parent:
- 5:df012c2caf40
- Child:
- 7:1fe91b525d9a
--- a/Services/Network/RestServer.cpp Sat Feb 01 18:54:20 2014 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@
-#include "RestServer.h"
-
-RestServer::RestServer(FileSystemLike* aFileSystem) {
- fileSystem = aFileSystem;
- webServer = new HTTPServer();
- webServer->addHandler<SimpleHandler>("/testService");
- FSHandler::mount("/local", "/");
- webServer->addHandler<FSHandler>("/");
-}
-
-RestServer::~RestServer() {
- delete webServer;
-}
-
-void RestServer::bind() {
- webServer->bind(80);
-}
\ No newline at end of file
