HTTPill v0.2.2 HTTPill.Adapter behaviour View Source

This module defines the behaviour which all HTTPill adapters must follow

Link to this section Summary

Callbacks

Handles the adapter_response which is teh result of from issue_request/2

Issues the given request through the implemented adapter

Link to this section Types

Link to this type adapter_response() View Source
adapter_response() :: any
Link to this type after_process_async_response() View Source
after_process_async_response() :: function
Link to this type after_process_response() View Source
after_process_response() :: function
Link to this type before_process_response() View Source
before_process_response() :: function

Link to this section Callbacks

Link to this callback handle_response(adapter_response, arg1, arg2, before_process_response, after_process_response) View Source

Handles the adapter_response which is teh result of from issue_request/2

Must call before_process_response and after_process_response callbacks

Link to this callback issue_request(arg0, before_process_response, after_process_response) View Source

Issues the given request through the implemented adapter