Merge pull request #358 from rs/patch-1

Add CORS and XFF middlewares
This commit is contained in:
Duke 2015-05-06 11:22:43 -03:00
commit 93a7580e2d

View File

@ -57,6 +57,8 @@ Join us on IRC at **#awesome-go** on freenode [web access](http://webchat.freeno
- [Video](#video) - [Video](#video)
- [Web Frameworks](#web-frameworks) - [Web Frameworks](#web-frameworks)
- [Middlewares](#middlewares) - [Middlewares](#middlewares)
- [Actual middlewares](#actual-middlewares)
- [Libraries for creating HTTP middlewares](#libraries-for-creating-http-middlewares)
- [Windows](#windows) - [Windows](#windows)
- [Tools](#tools) - [Tools](#tools)
@ -733,7 +735,13 @@ Join us on IRC at **#awesome-go** on freenode [web access](http://webchat.freeno
### Middlewares ### Middlewares
*Libraries for creating HTTP middlewares.* #### Actual middlewares
* [CORS](https://github.com/rs/cors) - Easily add CORS capabilities to your API
* [formjson](https://github.com/rs/formjson) - Transparently handle JSON input as a standard form POST
* [XFF](https://github.com/sebest/xff) - Handle `X-Forwarded-For` header and friends
#### Libraries for creating HTTP middlewares
* [alice](https://github.com/justinas/alice) - Painless middleware chaining for Go. * [alice](https://github.com/justinas/alice) - Painless middleware chaining for Go.
* [go-wrap](https://github.com/go-on/wrap) - Small middlewares package for net/http. * [go-wrap](https://github.com/go-on/wrap) - Small middlewares package for net/http.
@ -743,9 +751,6 @@ Join us on IRC at **#awesome-go** on freenode [web access](http://webchat.freeno
* [render](https://github.com/unrolled/render) - Go package for easily rendering JSON, XML, and HTML template responses. * [render](https://github.com/unrolled/render) - Go package for easily rendering JSON, XML, and HTML template responses.
* [stats](https://github.com/thoas/stats) - A Go middleware that stores various information about your web application. * [stats](https://github.com/thoas/stats) - A Go middleware that stores various information about your web application.
# Tools # Tools
Go software and plugins. Go software and plugins.