PhoenixApiToolkit.TestHelpers.application_json

You're seeing just the function application_json, go back to PhoenixApiToolkit.TestHelpers module for more information.

Specs

application_json(Plug.Conn.t()) :: Plug.Conn.t()

Put request header "content-type: application/json" on the conn.

Examples

use Plug.Test

iex> conn(:post, "/") |> application_json() |> get_req_header("content-type")
["application/json"]