PlugRequireHeader

Source

Summary

call(conn, arg2)

Extracts the required headers and assign them to the connection struct

init(options)

Initialises the plug given a keyword list of the following format

Functions

call(conn, arg2)

Extracts the required headers and assign them to the connection struct.

Source
init(options)

Initialises the plug given a keyword list of the following format.

[<connection_key>: <header_key>]
  • The <connection_key> atom is the connection key to assign the value of the header.
  • The <header_key> binary is the header key to be required and extracted.
Source