Crate netserver

source ·
Expand description

Web

A Library for hosting servers.

Structs

  • Options for the debug type of Mode. customize the amount of debugging and the data you want to see.
  • A request. Containing some of the requests data.
  • 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.
  • A WebServer that can be hosted with the ‘listen’ method

Enums

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

Functions

  • Makes a request with the given Request struct.

Type Aliases