API Reference Plug v1.11.1
The plug specification.
The request will not be processed due to a client error.
Functionality for providing Basic HTTP authentication.
Conveniences for building plugs.
Plug to protect from cross-site request forgery.
Error raised when CSRF token is invalid.
The Plug connection.
Specification of the connection adapter API implemented by webservers.
Error raised when trying to modify or send an already sent response
Error raised when the cookie exceeds the maximum size of 4096 bytes.
Conveniences for encoding and decoding cookies.
Error raised when trying to send a header that has errors, for example
Raised when the request string is malformed, for example
Error raised when no response is sent in a request
Conveniences for decoding and encoding url encoded queries.
Conveniences for working with status codes.
A struct used as default on unfetched fields.
Utilities for working with connection data
Wraps the connection in an error which is meant to be handled upper in the stack.
A module (not a plug) for debugging in development.
A module to be used in your existing plugs in order to provide error handling.
A protocol that extends exceptions to be status-code aware.
Conveniences for generating HTML.
A Plug to convert
HEAD requests to
A plug for logging basic request information in the format
This plug overrides the request's
POST method with the method defined in
_method request parameter.
A plug for parsing the request body.
Raised when the request body contains bad encoding.
Parses JSON request body.
Parses multipart request body.
Error raised when the request body is malformed.
Error raised when the request is too large.
Parses urlencoded request body.
Error raised when the request body cannot be parsed.
A plug for generating a unique request id for each request.
A plug to rewrite the request's host/port/protocol from
A DSL to define a routing algorithm that works with Plug.
A plug to force SSL connections and enable HSTS.
A plug to handle session cookies and session stores.
Stores the session in a cookie.
Stores the session in an in-memory ETS table.
Specification for session stores.
A plug for serving static assets.
A plug to instrument the pipeline with
Conveniences for testing plugs.
Timeout while waiting for the request.