Timber v2.3.0 Timber.Events.HTTPServerResponseEvent View Source
The HTTPServerResponseEvent
tracks responses for incoming HTTP requests. In other words,
the resposnes you are sending back to your clients. This gives you structured insight into
the response you are sending back to your clients.
Timber can automatically track response events if you use a Plug
based framework
through Timber.Plug
.
Link to this section Summary
Link to this section Types
Link to this type
t()
View Source
t() :: %Timber.Events.HTTPServerResponseEvent{body: String.t | nil, headers: map, request_id: Strin.t | nil, status: pos_integer, time_ms: float}
Link to this section Functions
Message to be used when logging.
Builds a new struct taking care to:
- Normalize header values so they are consistent.
- Removes “” or nil values.