New v1.18.4 release of #golang compression library adds zstd compression to gzhttp middleware. Also zstd can now have some options modified on reset. See more at: github.com/klauspost/co...
Post
Was NewWrapper supposed to return `func(Handler) Handler` instead of `func(Handler) HandlerFunc`? The former is what all of the http libraries expect. so this middleware can't be used with say, chi
0 reposts1 like
Sure, but it is awkward, as you need a wrapper func to convert from func to interface: go.dev/play/p/iS9jV...