CPub.HTTP.RequestBuilder (CPub v0.3.0) View Source

Helper functions for building Tesla requests.

Link to this section Summary

Functions

Add optional parameters to the request

Add headers to the request

Specify the request method when building a request

Creates new request

Add custom, per-request middleware or adapter options to the request

Specify the request method when building a request

Link to this section Functions

Link to this function

add_param(request, location, key, values)

View Source

Specs

add_param(CPub.HTTP.Request.t(), atom(), atom(), any()) :: CPub.HTTP.Request.t()

Add optional parameters to the request

Link to this function

convert_to_keyword(request)

View Source

Specs

convert_to_keyword(CPub.HTTP.Request.t()) :: keyword()
Link to this function

headers(request, headers)

View Source

Specs

Add headers to the request

Specs

Specify the request method when building a request

Link to this function

new(request \\ %Request{})

View Source

Specs

Creates new request

Specs

Add custom, per-request middleware or adapter options to the request

Specs

Specify the request method when building a request