Skip to content

Automatic support for OPTIONS and HEAD requests #52

@hipsterjazzbo

Description

@hipsterjazzbo

I'd like to be able to respond to the OPTIONS and HEAD verbs. This could probably be handled automatically, since this package already knows all the details needed to respond to those requests.

An OPTIONS request to a given endpoint should respond with something like this:

HTTP/1.1 200 OK
Host: localhost:8000
Connection: close
Allow: GET,HEAD,POST

Where Allow: lists the other HTTP verbs that are valid for that endpoint.

And a HEAD request should be the same as a GET request, but should return just the headers, without the response body.

I had a go at doing it myself but I'm fairly new to Laravel and I don't think I have the understanding of the internals of the framework to do it well.

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