Timber v0.1.2 Timber.Contexts.HTTPResponseContext

The HTTP response context tracks outgoing HTTP responses.

Timber can automatically add responses to the context stack 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.Contexts.HTTPResponseContext{bytes: non_neg_integer, headers: headers, status: pos_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