POST is 404 and GET is OK
# http4k
k
POST is 404 and GET is OK
k
OK I see.
But what I can do if I want pass big data to sse server
Like openai stream chat completion
d
If you really want to do it you could reimplement the relevant http4k SSE connector . I think it would work - it's just that the connectors filter for GET requests as per the spec. Otherwise you can follow the advice in that SO, or maybe post to a different endpint first, store the payload and then get the response from a redirect (as long as you can intercept the redirect set the headers to request the correct content type) - which means it would have to be an XMLhttpRequest
k
OK I impl my own jetty and MyJettyEventStreamHandler just like orign file by only remove
_method_ == "GET"
and it works.
thanks @dave
image.png