Closed JonasDoe closed 9 months ago
I'm afraid that there is no such thing. But what you could try is keeping this information in a map[*fasthttp.Request]Information
.
I see. I imagine it's rather hard to set and delete/clean up these Information
properly for Request
use, though, esp. if I "just" want too provide some non-intrusive RoundTrippers
. I think I'll refrain from creating those for now. Thank you for the clarification!
I'm trying to write some
RoundTrippers
which for example read correlation ids and some authorization infos from the context and write them into the outgoingRequest's
header. It seems like there nothing as acontext.Context
or a client-variant offasthttp.RequestCtx
get provided in theRoundTripper's
signature(hc *HostClient, req *Request, resp *Response) (retry bool, err error)
(orfasthttp.Request
, respectively).Is it possible to achieve something like that with fasthttp?