pipeline v0.1.0 Pipeline.Match.Method

Summary

Functions

Converts a given method to its connection representation

Functions

normalize(method)

Converts a given method to its connection representation.

The request method is stored in the Plug.Conn struct as an uppercase string (like "GET" or "POST"). This function converts method to that representation.

Examples

iex> Plug.Router.Utils.normalize_method(:get)
"GET"