Packages

Elixir client for the ORY Hydra administrative API

Current section

Files

Jump to
ory_hydra lib ory hydra helpers headers.ex
Raw

lib/ory/hydra/helpers/headers.ex

defmodule ORY.Hydra.Helpers.Headers do
@spec content_type(ORY.Hydra.Operation.t()) :: String.t()
def content_type(%{ content_type: :form_urlencoded }) do
"application/x-www-form-urlencoded"
end
def content_type(%{ content_type: :json }) do
"application/json"
end
end