wrapcontrib

package module
v2.7.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2018 License: MIT Imports: 0 Imported by: 0

README

wrap-contrib

Collection of middleware (wrappers) for github.com/go-on/wrap

Build Status GoDoc Coverage Status Total views

Contributions

Yes, please! Make a pull request and let me see. If it is not matured consider adding it to go-on/wrap-contrib-testing.

Content

  • body writer: EscapeHTML, GZip, ReadSeeker
  • error handling: Error, Catch, Defer
  • caching: ETag, IfNoneMatch, IfMatch
  • combinators: After, Before, Around, Fallback, First, Guard
  • REST: Head, MethodOverride, (GET|POST|PUT|DELETE|PATCH|OPTIONS|HEAD)Handler
  • dispatching: Dispatch, Map, MethodHandler, And, Or, Match(Method|Path|Host|Scheme|Query|Header)
  • http.Handler: (Text|JSON|CSS|HTML|JavaScript)String
  • header manipulation: ContentType, (Set|Remove)(Request|Response)Header
  • integration of 3rd party middleware: wrapnosurf (github.com/justinas/nosurf), wraphttpauth (github.com/abbot/go-http-auth), wrapsession (github.com/gorilla/sessions)

More Middleware

More (WIP,API may change) middleware can be found at github.com/go-on/wrap-contrib-testing

Router

A router (WIP,API may change) can be found at github.com/go-on/router

Documentation

Overview

Package wrapcontrib provides middleware (wraps) and helpers for http://github.com/go-on/wrap.

The middleware documentation is located at: https://godoc.org/github.com/go-on/wrap-contrib/wraps.

The helper documentation is located at: https://godoc.org/github.com/go-on/wrap-contrib/helper.

Directories

Path Synopsis
examples
Package helper provides helpers for the development and testing of middleware wrappers.
Package helper provides helpers for the development and testing of middleware wrappers.
Package stack provides shortcuts for applications that need just one top level stack
Package stack provides shortcuts for applications that need just one top level stack
third-party
wraphttpauth
Package wraphttpauth provides wrappers based on the github.com/abbot/go-http-auth package.
Package wraphttpauth provides wrappers based on the github.com/abbot/go-http-auth package.
wrapnosurf
Package wrapnosurf provides wrappers based on the github.com/justinas/nosurf package.
Package wrapnosurf provides wrappers based on the github.com/justinas/nosurf package.
wrapsession
Package wrapsession provides wrappers based on the github.com/gorilla/sessions.
Package wrapsession provides wrappers based on the github.com/gorilla/sessions.
Package wraps provides middleware for http://github.com/go-on/wrap.
Package wraps provides middleware for http://github.com/go-on/wrap.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL