Package rest
provides functionality to:
- initiate a REST service,
- register REST routes and handler,
- handle REST requests and
- handles CORS header.
go get github.com/doozer-de/rest
This library works well with restgen.
Due to usage of golang.org/x/net/context
in current Protobuf implementation
func(ctx context.Context, w http.ResponseHandler, r *http.Request)
signature is used for HTTP handlers instead for http.HandlerFunc.
Parts of HTTP router: Julien Schmidt github.com/julienschmidt/httprouter Servier based on: Christoph Seufert github.com/0x434d53/service. CORS based on: Jaana Burcu Dogan https://github.com/martini-contrib/cors
Copyright © 2016-2017 DOOZER REAL ESTATE SYSTEMS GMBH
Licensed under the MIT license.