Timber v1.1.0 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 process message type and body and determines if the async request sent in async_request/5 is complete

Functions

done?(ref, arg2)
done?(reference, any) :: boolean

Takes a process message type and body and determines if the async request sent in async_request/5 is complete.