Timber v2.3.4 Timber.HTTPClients.Hackney View Source

An efficient HTTP client that leverages hackney, keep alive connections, and connection pools to communicate with the Timber API.

Configuration

config :timber, :hackney_client,
  request_options: [
    connect_timeout: 5_000, # 5 seconds, timeout to connect
    recv_timeout: 20_000 #  20 seconds, timeout to receive a response
  ]
  • :request_options - Passed to :hackney.request(method, url, headers, body, request_options).

Link to this section Summary

Functions

Issues a HTTP request via hackney

Issues a HTTP request via hackney

Callback implementation for c:Timber.HTTPClient.start/0

Link to this section Functions

Link to this function async_request(method, url, headers, body) View Source

Issues a HTTP request via hackney.

Link to this function request(method, url, headers, body) View Source

Issues a HTTP request via hackney.

Callback implementation for c:Timber.HTTPClient.start/0.