Expand description
Webserver is a simple way of serving static files / api endpoints.
Structs§
- Routes
Return - Server
Options - The options that the user has before starting the server
- Statics
- Options related to serving static files
Enums§
- Header
Return - The get_header function can either take multiple header requests as input, or just one
- Method
- Response
Type - Response
Type Image - Route
Root - Route
Value
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