air
air copied to clipboard
An ideally refined web framework for Go.
``` package main import ( "bytes" "github.com/aofei/air" ) var a = air.Default func identicon(req *air.Request, res *air.Response) error { return res.Write(bytes.NewReader(req.ParamValue("Name").Bytes())) } func main() { a.DebugMode = true a.GET("/identicons/:Name", identicon)...
Middleware benchmark testing
the [````](https://github.com/aofei/air/blob/cc9ef405101b2e44bd33f751cdc1d7f92a2282b3/response.go#L191) tag has several variations which don't always need pushing for example with ``preload``/``favicon`` pushing can disturb caching and cause needless bandwidth consumption and sometimes in the worst cases...
It would be very nice to see a golang web framework handle gzip natively and do it well. There are various libraries and middlewares out there which purport a well...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.0.0-20210415154028-4f45737414dc to 0.1.0. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.0.0-20210415045647-66c3f260301c to 0.1.0. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.0.0-20210415231046-e915ea6b2b7d to 0.7.0. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.3.6 to 0.3.8. Commits 434eadc language: reject excessively large Accept-Language strings 23407e7 go.mod: ignore cyclic dependency for tagging b18d3dd secure/precis: replace bytes.Compare with bytes.Equal 795e854 all: replace...