HTTPower.Client (HTTPower v0.16.0)
View SourceHTTPower client with adapter support and advanced features.
This module provides:
- Adapter pattern supporting multiple HTTP clients (Finch, Req, Tesla)
- Test mode request blocking
- Smart retry logic with exponential backoff and jitter
- Clean error handling (never raises exceptions)
- SSL/Proxy configuration support
- Request timeout management
The client sits above the adapter layer, providing consistent retry logic, error handling, and other production features regardless of the underlying HTTP client.
Summary
Functions
Makes an HTTP DELETE request.
Makes an HTTP GET request.
Makes an HTTP HEAD request.
Makes an HTTP OPTIONS request.
Makes an HTTP PATCH request.
Makes an HTTP POST request.
Makes an HTTP PUT request.
Functions
@spec delete( String.t(), keyword() ) :: {:ok, HTTPower.Response.t()} | {:error, HTTPower.Error.t()}
Makes an HTTP DELETE request.
@spec get( String.t(), keyword() ) :: {:ok, HTTPower.Response.t()} | {:error, HTTPower.Error.t()}
Makes an HTTP GET request.
@spec head( String.t(), keyword() ) :: {:ok, HTTPower.Response.t()} | {:error, HTTPower.Error.t()}
Makes an HTTP HEAD request.
@spec options( String.t(), keyword() ) :: {:ok, HTTPower.Response.t()} | {:error, HTTPower.Error.t()}
Makes an HTTP OPTIONS request.
@spec patch( String.t(), keyword() ) :: {:ok, HTTPower.Response.t()} | {:error, HTTPower.Error.t()}
Makes an HTTP PATCH request.
@spec post( String.t(), keyword() ) :: {:ok, HTTPower.Response.t()} | {:error, HTTPower.Error.t()}
Makes an HTTP POST request.
@spec put( String.t(), keyword() ) :: {:ok, HTTPower.Response.t()} | {:error, HTTPower.Error.t()}
Makes an HTTP PUT request.