View Source Flowy.Support.Http (Flowy v0.1.0)
The Cache
module provides a simple API for interacting with the configured
cache store.
Options
:opts
(non-emptykeyword/0
) - The default value is[receive_timeout: 15000]
.:client
(atom/0
) - the HTTP client module to use. The default value isFlowy.Support.Http.FinchClient
.
Summary
Functions
Builds a new HTTP client struct.
Makes a DELETE request.
Makes a DELETE request, using the provided client.
Makes a GET request.
Makes a GET request, using the provided client.
Makes a PATCH request.
Makes a PATCH request, using the provided client.
Makes a POST request.
Makes a POST request, using the provided client.
Makes a PUT request.
Makes a PUT request, using the provided client.
Types
@type response() :: Flowy.Support.Http.Response.t()
Functions
Builds a new HTTP client struct.
Examples
iex> Flowy.Support.Http.build() %Flowy.Support.Http{
client: Flowy.Support.Http.FinchClient,
opts: [pool_timeout: 5000, receive_timeout: 15000]
}
iex> Flowy.Support.Http.build(opts: [receive_timeout: 10_000]) %Flowy.Support.Http{
client: Flowy.Support.Http.FinchClient,
opts: [pool_timeout: 5000, receive_timeout: 10000]
}
Makes a DELETE request.
Makes a DELETE request, using the provided client.
Makes a GET request.
Makes a GET request, using the provided client.
Makes a PATCH request.
Makes a PATCH request, using the provided client.
Makes a POST request.
Makes a POST request, using the provided client.
Makes a PUT request.
Makes a PUT request, using the provided client.