Skip to content

Allow HEAD mathod in file-server #6750

@carragom

Description

@carragom

Is your feature request related to a problem? Please describe.

When using the http file server from the CLI as documented with the following command:

deno run --allow-net --allow-read --allow-sys jsr:@std/http/file-server

The HEAD http method returns a 405 method not allowed.

Describe the solution you'd like

Implement the HEAD method in the file server.

Describe alternatives you've considered

This was discussed in Discord and looks like serveFile does support HEAD but serveDir does not. Apparently the discrepancy does not make much sense.

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