spyne icon indicating copy to clipboard operation
spyne copied to clipboard

Make request headers customizable in http client

Open plq opened this issue 14 years ago • 1 comments

see here for a use case: https://github.com/pletoss/soaplib.client/commit/2968c730eab741665ba8a0749431e950fd368f89

plq avatar Sep 02 '11 09:09 plq

Hi,

We are facing the same need at work. [1]

Do you have plans for this feature? Would you have some implementation ideas? I do not know Spyne's source code and passing values to the HTTP client does not look obvious to me. ;)

[1] Application A generates a "correlation id". We can then tag all logged messages with this id and make more sense of our logs. When application A talks to application B via SOAP, we would like Spyne's SOAP client to propagate this correlation id from application A to application B. One way to do that would be through an HTTP header that the SOAP client could send.

dbaty avatar Nov 07 '16 15:11 dbaty