Join Nostr
2024-11-15 09:04:42 UTC
in reply to

marius on Nostr: nprofile1q…3s5e3 if I understand correctly what you want to do, I think the ...

if I understand correctly what you want to do, I think the idiomatic solution would be to write your own http.RoundTripper implementation which does only what you need, and delegates to the previous Transport for the common http parts.

I have an example up if you're interested in my implementation of a caching aware http transport:

https://git.sr.ht/~mariusor/cache/tree/master/item/transport.go#L226