From 13df16fa6a89e22cda9726da3d2380b84c4b0182 Mon Sep 17 00:00:00 2001 From: Olivier Poitrey Date: Wed, 22 Apr 2015 11:52:42 -0700 Subject: [PATCH 1/4] Add CORS and XFF middlewares --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 674138c..2eb87c7 100644 --- a/README.md +++ b/README.md @@ -728,8 +728,10 @@ Join us on IRC at **#awesome-go** on freenode [web access](http://webchat.freeno * [negroni](https://github.com/codegangsta/negroni) - Idiomatic HTTP middleware for Golang. * [render](https://github.com/unrolled/render) - Go package for easily rendering JSON, XML, and HTML template responses. +*Actual middlewares.* - +* [CORS](https://github.com/rs/cors) - Easily add CORS capabilities to your API +* [XFF](https://github.com/sebest/xff) - Handle `X-Forwarded-For` header and friends # Tools From 3b713d954678d4696ca57c69c2cd6dcc7e39f984 Mon Sep 17 00:00:00 2001 From: Olivier Poitrey Date: Wed, 22 Apr 2015 11:56:00 -0700 Subject: [PATCH 2/4] Add formjson middleware --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2eb87c7..0e94a9f 100644 --- a/README.md +++ b/README.md @@ -731,7 +731,8 @@ Join us on IRC at **#awesome-go** on freenode [web access](http://webchat.freeno *Actual middlewares.* * [CORS](https://github.com/rs/cors) - Easily add CORS capabilities to your API -* [XFF](https://github.com/sebest/xff) - Handle `X-Forwarded-For` header and friends +* [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 # Tools From b1da228028b5c1dd099cafb3d4267fdfca842d4d Mon Sep 17 00:00:00 2001 From: Olivier Poitrey Date: Tue, 28 Apr 2015 01:22:25 -0400 Subject: [PATCH 3/4] Adding middleware sub-sections links --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0e94a9f..f741313 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,8 @@ Join us on IRC at **#awesome-go** on freenode [web access](http://webchat.freeno - [Video](#video) - [Web Frameworks](#web-frameworks) - [Middlewares](#middlewares) + - [Libraries for creating HTTP middlewares](#libraries-for-creating-http-middlewares) + - [Actual middlewares](#actual-middlewares) - [Windows](#windows) - [Tools](#tools) @@ -719,7 +721,7 @@ Join us on IRC at **#awesome-go** on freenode [web access](http://webchat.freeno ### Middlewares -*Libraries for creating HTTP middlewares.* +#### Libraries for creating HTTP middlewares * [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. @@ -728,7 +730,7 @@ Join us on IRC at **#awesome-go** on freenode [web access](http://webchat.freeno * [negroni](https://github.com/codegangsta/negroni) - Idiomatic HTTP middleware for Golang. * [render](https://github.com/unrolled/render) - Go package for easily rendering JSON, XML, and HTML template responses. -*Actual 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 From e2df11eddace824b3e2109de119f01a931560cd0 Mon Sep 17 00:00:00 2001 From: Olivier Poitrey Date: Tue, 5 May 2015 11:41:10 -0700 Subject: [PATCH 4/4] Fix alphabetical ordering --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f741313..fb27186 100644 --- a/README.md +++ b/README.md @@ -56,8 +56,8 @@ Join us on IRC at **#awesome-go** on freenode [web access](http://webchat.freeno - [Video](#video) - [Web Frameworks](#web-frameworks) - [Middlewares](#middlewares) - - [Libraries for creating HTTP middlewares](#libraries-for-creating-http-middlewares) - [Actual middlewares](#actual-middlewares) + - [Libraries for creating HTTP middlewares](#libraries-for-creating-http-middlewares) - [Windows](#windows) - [Tools](#tools) @@ -721,6 +721,12 @@ Join us on IRC at **#awesome-go** on freenode [web access](http://webchat.freeno ### 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. @@ -730,12 +736,6 @@ Join us on IRC at **#awesome-go** on freenode [web access](http://webchat.freeno * [negroni](https://github.com/codegangsta/negroni) - Idiomatic HTTP middleware for Golang. * [render](https://github.com/unrolled/render) - Go package for easily rendering JSON, XML, and HTML template responses. -#### 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 - # Tools Go software and plugins.