-
![](https://image.nostr.build/46748cf4fa614b75109ead7b70927e1ab8ea686fd3af03a12027e3414b9fe572.jpg)
@ Anthony Accioly
2025-02-13 12:59:58
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.