package
0.5.1
Repository: https://github.com/asdf20122012/caddy.git
Documentation: pkg.go.dev

# Packages

Package basicauth implements HTTP Basic Authentication.
Package browse provides middleware for listing files in a directory when directory path is requested instead of a specific file.
Package errors implements an HTTP error handling middleware.
Package extension is middleware for clean URLs.
Package fastcgi has middleware that acts as a FastCGI client.
Package gzip provides a simple middleware layer that performs gzip compression on the response.
Package headers provides middleware that appends headers to requests based on a set of configuration rules that define which routes receive which headers.
Package log implements basic but useful request (access) logging middleware.
Package markdown is middleware to render markdown files as HTML on-the-fly.
Package proxy is middleware that proxies requests.
Package redirect is middleware for redirecting certain requests to other locations.
Package rewrite is middleware for rewriting requests internally to a different path.
Package templates implements template execution for files to be dynamically rendered for the client.
Package websockets implements a WebSocket server by executing a command and piping its input and output through the WebSocket connection.

# Functions

NewReplacer makes a new replacer based on r and rr.
NewResponseRecorder makes and returns a new responseRecorder, which captures the HTTP Status code from the ResponseWriter and also the length of the response body written through it.
SplitCommandAndArgs takes a command string and parses it shell-style into the command and its separate arguments.

# Constants

No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
HandlerFunc is a convenience type like http.HandlerFunc, except ServeHTTP returns a status code and an error.
No description provided by the author
Path represents a URI path, maybe with pattern characters.