Crate fastserve

Source
Expand description

Webserver is a simple way of serving static files / api endpoints.

Structs§

RoutesReturn
ServerOptions
The options that the user has before starting the server
Statics
Options related to serving static files

Enums§

HeaderReturn
The get_header function can either take multiple header requests as input, or just one
Method
ResponseType
ResponseTypeImage
RouteRoot
RouteValue

Functions§

exec_path
expect_headers
Quick function to respond with a message saying that some headers might be missing
handle_connect
iterate_routes
log
Print a response with colors
parse_headers
Parse headers by using a request-string as input, and specify what headers you want returned By using HeaderReturn you can specify if you either want all headers back or just some
respond
Return a http response containing the status, and optionally some content
send_file
start
Start the server
trail