# 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 extensions contains 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 inner provides a simple middleware that (a) prevents access to internal locations and (b) allows to return files from internal location by setting a special header, e.g.
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
FileServer implements a production-ready file server and is the 'default' handler for all requests to Caddy.
IndexFile looks for a file in /root/fpath/indexFile for each string in indexFiles.
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.
# Variables
IndexPages is a list of pages that may be understood as the "index" files to directories.
# Type aliases
No description provided by the author
No description provided by the author
Path represents a URI path, maybe with pattern characters.