RigInboundGatewayWeb.MediaTypeHandling (Reactive Interaction Gateway v3.0.0-alpha.2) View Source

Helper functions around media type handling.

Link to this section Summary

Link to this section Types

Specs

media_type() :: {String.t(), String.t()}

Link to this section Functions

Link to this function

accept_only_req_for(conn, supported_media_types)

View Source

Specs

accept_only_req_for(Plug.Conn.t(), [String.t()]) :: Plug.Conn.t()
Link to this function

accepted_media_types(conn)

View Source

Specs

accepted_media_types(Plug.Conn.t()) :: [media_type()]
Link to this function

accepts_media_type?(conn, supported_media_types)

View Source

Specs

accepts_media_type?(Plug.Conn.t(), [String.t()]) :: Plug.Conn.t()
Link to this function

extract_from_header(conn, header_key, transform)

View Source
Link to this function

media_type(media_type_string)

View Source

Specs

media_type(String.t()) :: media_type()