Instream v0.9.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

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.