Custom HTTP handlers should not be limited to OPTIONS method
Closed this issue · 0 comments
benjaminheng commented
Currently the ability to register a HTTP interceptor is only available if the OPTIONS
method is declared on the endpoint.
It should either be available always, or as long as any method is defined using ORION:URL:
One use-case for the HTTP interceptor is when using websockets, access to http.ResponseWriter
and http.Request
is needed to upgrade the connection.
Orion/protoc-gen-orion/orion.go
Lines 166 to 168 in e92c16f
Orion/protoc-gen-orion/orion.go
Lines 178 to 183 in e92c16f