Commit ae2a2d5b authored by Matthew Holt's avatar Matthew Holt

Godoc for middleware packages and server package

parent bcdf04d0
// Extensionless is middleware for clean URLs. A root path is // Package extensionless is middleware for clean URLs. A root path is
// passed in as well as possible extensions to add, internally, // passed in as well as possible extensions to add, internally,
// to paths requested. The first path+ext that matches a resource // to paths requested. The first path+ext that matches a resource
// that exists will be used. // that exists will be used.
......
// Package gzip provides a simple middleware layer that performs
// gzip compression on the response.
package gzip package gzip
import ( import (
......
// Package headers provides middleware that appends headers to
// requests based on a set of configuration rules that define
// which routes receive which headers.
package headers package headers
import ( import (
......
// Package log implements basic but useful request logging middleware.
package log package log
import ( import (
......
// Proxy is middleware that proxies requests. // Package proxy is middleware that proxies requests.
package proxy package proxy
import ( import (
......
// Redirect is middleware for redirecting certain requests // Package redirect is middleware for redirecting certain requests
// to other locations. // to other locations.
package redirect package redirect
......
// Server implements a configurable, general-purpose web server. It // Package server implements a configurable, general-purpose web server.
// relies on configurations obtained from the adjacent config package // It relies on configurations obtained from the adjacent config package
// and can execute middleware as defined by the adjacent middleware // and can execute middleware as defined by the adjacent middleware package.
// package.
package server package server
import ( import (
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment