# Functions
FormatAndReturnJSONResponse formats the given data into JSON and returns the response.
FormatAndReturnJSONTextResponse formats the given data into JSON and returns a plaintext response.
FormatAndReturnOctetResponse formats the given data into an octet stream and returns the response.
FormatAndReturnTextResponse formats the given data as plaintext and returns the response.
HandleFunc registers the handler function for the given pattern.
HandleFuncPrefix registers the handler function for the given prefix pattern.
ListenAndServe serves all patterns setup via their respective handlers.
ReturnBadRequestResponse returns response with 400 Bad Request.
ReturnNotFoundResponse returns response with 404 Not Found.
ReturnUnauthorizedResponse returns response with 401 Unauthorized.
# Constants
BadRequestResponse represents the IMDSv2 response in the event of missing or invalid parameters in the request.
UnauthorizedResponse represents the IMDSv2 response in the event of unauthorized access.
# Variables
Routes represents the list of routes served by the http server.
# Type aliases
HandlerType represents the function passed as an argument to HandleFunc.