hound v1.0.2 Hound.ResponseParser behaviour

Defines a behaviour for parsing driver responses and provides a default implementation of the behaviour

Summary

Functions

Decodes a response body

Default implementation to handle drivers responses

Default implementation to check if the message is a warning

Functions

decode_content(content)

Decodes a response body

handle_response(mod, path, code, body)

Default implementation to handle drivers responses.

warning?(message)

Default implementation to check if the message is a warning

Callbacks

handle_error(map)

Specs

handle_error(map) :: {:error, any}
handle_response(any, integer, arg2)

Specs

handle_response(any, integer, String.t) :: any