Support for HEAD & OPTION requests
See original GitHub issue@ieugen said in issue 326 that…
OPTIONS and HEAD are not supported right now.
I’m wondering if/when HEAD will be supported? I currently get HTTP/1.1 204 No Content
for all valid HEAD requests but I’m expecting HTTP/1.1 200 OK
. As for OPTIONS… I’m using a CORS Filter thus I don’t need katharsis to handle OPTIONS. So, not support needed there.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
OPTIONS - HTTP - MDN Web Docs
The Access-Control-Request-Headers header tells the server that when the actual request is sent, it will have the X-PINGOTHER and Content-Type ...
Read more >What is HTTP OPTIONS Method? - ReqBin
HTTP OPTIONS requests allow clients to obtain parameters and requirements for specific resources and server capabilities without taking action ...
Read more >Why is an OPTIONS request sent and can I disable it?
Options request is a preflight request when you send (post) any data to another domain. It's a browser security issue. But we can...
Read more >HTTP/1.1: Method Definitions
When a proxy receives an OPTIONS request on an absoluteURI for which request forwarding is permitted, the proxy MUST check for a Max-Forwards...
Read more >Why Is an OPTIONS Request Sent? - Baeldung
When a request is either a GET, POST, or a HEAD request it can be eligible to be a simple request. Besides that,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In the rewrite it is easy to implement support for HEAD and OPTIONS.
You have to implement a JsonApiHead and JsonApiOptions and hook them into
DefaultJsonApiDispatcher
.https://github.com/katharsis-project/katharsis-framework/blob/develop/katharsis-core/src/main/java/io/katharsis/dispatcher/DefaultJsonApiDispatcher.java
Patches are welcomed 😃
This has been pending a while. It’s a good feature to have