Skip to content

Commit

Permalink
Add Plug.Conn.Utils tests (#1230)
Browse files Browse the repository at this point in the history
  • Loading branch information
thymusvulgaris authored Jun 21, 2024
1 parent 872f079 commit 5b11e8d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/plug/conn/utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ defmodule Plug.Conn.Utils do
iex> content_type "*/*"
:error
iex> content_type "something"
:error
"""
@spec content_type(binary) :: {:ok, type :: binary, subtype :: binary, params} | :error
def content_type(binary) do
Expand Down Expand Up @@ -162,6 +165,9 @@ defmodule Plug.Conn.Utils do
iex> params(";")
%{}
iex> params("foo=")
%{}
"""
@spec params(binary) :: params
def params(t) do
Expand Down

0 comments on commit 5b11e8d

Please sign in to comment.