Open jinleileiking opened 6 years ago
Could you explain a bit more about the background of the request?
It is not so common.
There is no way to write a middleware in grpc-gateway middleware. so I need write in grpc-interceptor.
@jinleileiking Were you able to solve this? Have come across a similar use case where I need to access the complete REST URI from the gRPC middleware.
You can do it with normal HTTP middleware around the runtime.ServeMux
.
Please follow the general troubleshooting steps first:
grpc-gateway
to the latest version from github. withgit fetch https://github.com/grpc-ecosystem/grpc-gateway master && git reset --hard FETCH_HEAD
protoc-gen-grpc-gateway
andprotoc-gen-swagger
binary from yourPATH
, and install locally built binaries.Bug reports:
Fill in the following sections with explanations of what's gone wrong.
Steps you follow to reproduce the error:
What did you expect to happen instead:
my request is http://xxxx.com/adfa/ccc?eeee=5 I should use the string
http://xxx.com/adfa/ccc?eeee=5
to do some checks by interceptor. But I cannot get the uri, I only have the http headershost
etc. I need geturi
From now, there is no way.Suggest pass these headers: