Instream v0.11.0 Instream.Response

Response handling module.

Summary

Functions

Maybe parses a response based on the requested result type

Parses the response of a ping query

Parses the response of a status query

Types

t :: {status :: pos_integer, headers :: list, body :: String.t}

Functions

maybe_parse(arg, opts)

Specs

maybe_parse(t, Keyword.t) :: any

Maybe parses a response based on the requested result type.

parse_ping(arg1)

Specs

parse_ping(any) :: :pong | :error

Parses the response of a ping query.

parse_status(arg1)

Specs

parse_status(any) :: :ok | :error

Parses the response of a status query.