Stripy v2.1.0 Stripy.MockServer behaviour View Source

Mock server that would always return an empty, successful reply.

Implement behaviour to provide your own responses; make sure the reply is an ok/error tuple, something resembling a real HTTPoison result. Body of the response should also be JSON encoded.

Link to this section Summary

Callbacks

Request made by client.

Link to this section Functions

Link to this function

request(action, resource, body)

View Source

Link to this section Callbacks

Link to this callback

request(atom, arg2, map)

View Source
request(atom(), String.t(), map()) :: tuple()

Request made by client.