Plug.Conn
Plug.Conn
The Plug connection.
This module defines a Plug.Conn
struct and the main functions for working with Plug connections.
Note request headers are normalized to lowercase and response headers are expected to have lower-case keys.
Request fields
These fields contain request information:
-
host
- the requested host as a binary, example:"www.example.com"
-
method
- the request method as a binary, example:"GET"
-
path_info
- the path split into segments, example:["hello", "world"]
-
script_name
- the initial portion of the URL’s path that corresponds to the application routing,