mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-23 23:05:17 +08:00
Godoc for middleware packages and server package
This commit is contained in:
parent
bcdf04d00e
commit
ae2a2d5b00
|
@ -1,4 +1,4 @@
|
||||||
// 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.
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// Package gzip provides a simple middleware layer that performs
|
||||||
|
// gzip compression on the response.
|
||||||
package gzip
|
package gzip
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
// 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 (
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// Package log implements basic but useful request logging middleware.
|
||||||
package log
|
package log
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Proxy is middleware that proxies requests.
|
// Package proxy is middleware that proxies requests.
|
||||||
package proxy
|
package proxy
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// 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
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
// 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 (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user