Skip to content

Add Nack::App::File #37

Description

@himura467

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions