Dayron v0.1.1 Dayron.Request

Defines a struct to store data necessary to send a request using an adapter. Also provides helper functions to map request data to adapter method calls.

Summary

Functions

Given a request struct and an adapter, calls the correct adapter function passing the correct parameters. Return a tuple with {request, response}

Types

t :: %Dayron.Request{body: map, headers: list, method: atom, options: list, url: binary}

Functions

send(request, adapter)

Given a request struct and an adapter, calls the correct adapter function passing the correct parameters. Return a tuple with {request, response}.