question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:open
  • Created 7 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ieugencommented, Aug 3, 2016

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 😃

0reactions
chb0githubcommented, Jan 20, 2017

This has been pending a while. It’s a good feature to have

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found