Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
caddy
Commits
ae2a2d5b
Commit
ae2a2d5b
authored
Jan 29, 2015
by
Matthew Holt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Godoc for middleware packages and server package
parent
bcdf04d0
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
7 deletions
+12
-7
middleware/extensionless/extensionless.go
middleware/extensionless/extensionless.go
+1
-1
middleware/gzip/gzip.go
middleware/gzip/gzip.go
+2
-0
middleware/headers/headers.go
middleware/headers/headers.go
+3
-0
middleware/log/log.go
middleware/log/log.go
+1
-0
middleware/proxy/proxy.go
middleware/proxy/proxy.go
+1
-1
middleware/redirect/redirect.go
middleware/redirect/redirect.go
+1
-1
server/server.go
server/server.go
+3
-4
No files found.
middleware/extensionless/extensionless.go
View file @
ae2a2d5b
//
E
xtensionless is middleware for clean URLs. A root path is
//
Package e
xtensionless is middleware for clean URLs. A root path is
// passed in as well as possible extensions to add, internally,
// to paths requested. The first path+ext that matches a resource
// that exists will be used.
...
...
middleware/gzip/gzip.go
View file @
ae2a2d5b
// Package gzip provides a simple middleware layer that performs
// gzip compression on the response.
package
gzip
import
(
...
...
middleware/headers/headers.go
View file @
ae2a2d5b
// 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
import
(
...
...
middleware/log/log.go
View file @
ae2a2d5b
// Package log implements basic but useful request logging middleware.
package
log
import
(
...
...
middleware/proxy/proxy.go
View file @
ae2a2d5b
// Proxy is middleware that proxies requests.
// P
ackage p
roxy is middleware that proxies requests.
package
proxy
import
(
...
...
middleware/redirect/redirect.go
View file @
ae2a2d5b
//
R
edirect is middleware for redirecting certain requests
//
Package r
edirect is middleware for redirecting certain requests
// to other locations.
package
redirect
...
...
server/server.go
View file @
ae2a2d5b
// Server implements a configurable, general-purpose web server. It
// relies on configurations obtained from the adjacent config package
// and can execute middleware as defined by the adjacent middleware
// package.
// Package server implements a configurable, general-purpose web server.
// It relies on configurations obtained from the adjacent config package
// and can execute middleware as defined by the adjacent middleware package.
package
server
import
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment