Module server

Module server 

Source

Structs§

Server
An HTTP server that can handle multiple requests concurrently.

Enums§

Connection
A connection state machine for handling HTTP server requests-response cycles.
HandleRequestError
The error type for handling HTTP requests
HandlerError

Constants§

DEFAULT_BUF_SIZE
DEFAULT_HANDLER_TASKS_COUNT

Traits§

Handler
A trait (async callback) for handling incoming HTTP requests

Functions§

handle_connection
A convenience function to handle multiple HTTP requests over a single socket stream, using the specified handler.
handle_request
A convenience function to handle a single HTTP request over a socket stream, using the specified handler.

Type Aliases§

DefaultServer
A type alias for an HTTP server with default buffer sizes.
ServerBuffers
A type alias for the HTTP server buffers (essentially, arrays of MaybeUninit)