lidavidm commented on PR #40071:
URL: https://github.com/apache/arrow/pull/40071#issuecomment-1971988728

   IIRC, it's basically impossible, but you may have better luck getting 
answers from the gRPC team than I have. (I think the call filter API lets you 
do this, but because of various hardcoded things that I saw, basically only one 
call filter can be registered globally, so that's even more reason that Flight 
shouldn't touch it.)
   
   Hence, why I've suggested multiple times that for C++, the best way to do 
this would be to just inline the middleware into the RPC handler, instead of 
having a formal middleware (then the RPC handler is in full control).
   
   gRPC doesn't necessarily follow HTTP conventions in the first place 
(example: the HTTP status code is always 200). So that's not necessarily 
binding. And as mentioned some gRPC implementations already switch between 
headers/trailers for responses.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to