Closed xakep666 closed 1 year ago
@cristaloleg done
Thanks @xakep666 I will tag 1.3.0 a bit later today.
Note go 1.21 is out, so the test "!go1.20" for go 1.19 is no longer correct.
@jvilhuber "go 1.20", means "go 1.20 or newer" so negated one is "go 1.19 or older"
Thanks! Learned something new today!
Go 1.20 introduced new and more convenient way to control response and discover features - ResponseController. It's methods can introspect middlewares implementing following interface
source
This PR contains changes to use it if go version newer than 1.20. Old behaviour will be used if go version is older than 1.20.