What is Nostr?
marius /
npub1llr…afct
2024-11-15 09:04:42
in reply to nevent1q…4dg6

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

nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqmcptsh7w87wfwx94kd65xpkr470m84smz3hwujxkcmfvgqnc2nusq3s5e3 (nprofile…s5e3) 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
Author Public Key
npub1llr9a6f4xpn77mkud2dm5xpt2pgn98qrxfyzfl94mg87s2wzhsrsm0afct