Crate netserver

Source
Expand description

§Web

A Library for hosting servers.

Structs§

DebugOptions
Options for the debug type of Mode. customize the amount of debugging and the data you want to see.
Request
A request. Containing some of the requests data.
ThreadPool
A ThreadPool that runs the given task with the given threads. If all the threads are occupied then it waits until a new thread is available.
WebServer
A WebServer that can be hosted with the ‘listen’ method

Enums§

Mode
Mode for either Debuging or not…
RequestType
A request type. Specifies what request type to call a route function on.
ResponseCode
A response code. Used to specify how the request was on the webserver routes.

Functions§

HttpRequest
Makes a request with the given Request struct.

Type Aliases§

ErrorMessage