HTTP Server FunctionsΒΆ

start (int port)
Starts the HTTP Server

Paramaters:
    - port - The port number

returns void
path_callback (std::string path, pointer callback)
Registars a path along with its callback function

Paramaters:
    - path - The path (on the web). Example is /index
    - callback - the function that will get called when the path is called

returns void
middleware_public (std::string folder, std::string path)
Registars the public folder

Everything inside this folder is avaliable to anyone on the web

Paramaters:
    - folder - The folder on the computer
    - path - the path that will enable people to access it


returns void