PINXS.Middleware.Normalize (pinxs v3.2.0) View Source

Transforms HTTP responses from Tesla in {:ok, response} / {:error, reason} tuples

The allows us to pattern match without having to also check every request was a 2xx response

Link to this section Summary

Link to this section Functions

Link to this function

call(env, next, options)

View Source

Callback implementation for Tesla.Middleware.call/3.