Timber v0.2.3 Timber.Events.HTTPResponseEvent

The HTTP response event tracks outgoing HTTP responses.

Timber can automatically track response events if you use a Plug based framework through Timber.Plug.

Summary

Functions

Takes a list of two-element tuples representing HTTP response headers and returns a map of the recognized headers Timber handles

Types

headers()
headers :: %{cache_control: String.t, content_disposition: String.t, content_length: non_neg_integer, content_type: String.t, location: String.t}
t()
t :: %Timber.Events.HTTPResponseEvent{bytes: non_neg_integer, description: String.t, headers: headers, status: pos_integer, time_ms: non_neg_integer}

Functions

headers_from_list(headers)
headers_from_list([{String.t, String.t}]) :: headers
headers_from_list({String.t, String.t}) :: boolean

Takes a list of two-element tuples representing HTTP response headers and returns a map of the recognized headers Timber handles

new(opts)