What is Nostr?
Anthony Accioly
npub1a6w…0tyc
2025-02-13 12:59:58
in reply to nevent1q…mt5d

Anthony Accioly on Nostr: Not a bad idea. Unfortunately I think that for redirect we would need both the ...

Not a bad idea. Unfortunately I think that for redirect we would need both the request and ResponseWriter (unless there's other way to do it than http.Redirect). I think that it can be done like this without breaking old API regardless. I don't know if this would be the most idiomatic way to write this in Go, but it is certainly doable. Alternatively we could have another type of callback that accepts both request and response parameters (I really miss overloading methods in Go) or built-in functionality as described above. I'm certain that there's plenty of good ways to go about it assuming that this doesn't break the Blossom specs.
Author Public Key
npub1a6we08n7zsv2na689whc9hykpq4q6sj3kaauk9c2dm8vj0adlajq7w0tyc