4#include "../Strings/String.h"
#define SC_COMPILER_EXPORT
Macro for symbol visibility in non-MSVC compilers.
Definition: Compiler.h:78
Http request received from a client.
Definition: HttpServer.h:46
Http response that will be sent to a client.
Definition: HttpServer.h:75
Http web server helps statically serves files from a directory.
Definition: HttpWebServer.h:21
void serveFile(HttpRequest &request, HttpResponse &response)
Serve the efile requested by this Http Client on its channel Call this method in response to HttpServ...
Result stopAsync()
Release all resources allocated by this web server.
Result init(StringView directoryToServe)
Initialize the web server on the given file system directory to serve.
An ascii string used as boolean result. SC_TRY macro forwards errors to caller.
Definition: Result.h:11
A non-modifiable owning string with associated encoding.
Definition: String.h:30
Non-owning view over a range of characters with UTF Encoding.
Definition: StringView.h:47