Scope
Serve a single file or a file under a root.
Requirements
- Set
content-type through Nack::MIME and last-modified from the file.
- 404 for a missing file, 403 for a path escaping the root.
- Return the body as an
IO::Buffer where possible, which SPEC section 3.3 accepts without an intermediate String.
Scope
Serve a single file or a file under a root.
Requirements
content-typethroughNack::MIMEandlast-modifiedfrom the file.IO::Bufferwhere possible, which SPEC section 3.3 accepts without an intermediate String.