Does new ResponseController have to be supported by this package?

#26 · open · 3 comments

View on GitHub ↗

mitar

Go 1.20 added ResponseController: https://github.com/golang/go/issues/54136

Comments

mitar

I think we could just add `Unwrap` to every struct returned by this package. This could allow that any future extension by http package would just continue to work with this package. This package can then eventually generate extension methods as well, but `Unwrap` is nice to have.

felixge

I think the new `ResponseController` should be handled, thanks for bringing this up. PRs welcome!

dido18

I think this issue has been tackled by this PR https://github.com/felixge/httpsnoop/pull/29, isn't it?