Timber v1.1.11 Timber.Transports.HTTP.HackneyClient

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).

Summary

Functions

Issues a HTTP request via hackney

Takes a reference to an async request and waits for it to complete

Functions

wait_on_request(ref)
wait_on_request(reference) :: :ok

Takes a reference to an async request and waits for it to complete.