http/http_static_handler
library
Classes
-
StaticFolder
-
A folder of files served under a path prefix, see
Route.staticFiles.
Functions
-
acceptedQuality(String coding)
→ double
-
The
q of coding (lower case) in the Accept-Encoding value
header: 0 when the client does not accept it. A coding that is not
in the list gets the q of *, or 0 with no * (RFC 9110).
-
httpStaticHandler(HttpRequest req, List<StaticFolder> folders)
→ Future<bool>
-
Sends a file of
folders for a GET or HEAD request that matched no
route. true when a file was sent, false when none of the folders has
one (the caller then sends 404).