-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
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
Labels
No labels