pinxs v0.1.1 PINXS.Response View Source
Provides a standard way of converting all HTTP responses into tagged tuples
In particular, all failed requests will be transformed into error tuples.
The reason for this is that whilst the network request may have been successful, we consider any HTTP status code not in the 200 range to be an error.
Link to this section Summary
Link to this section Functions
Link to this function
transform(arg, module)
View Source
transform({:ok, map()} | {:error, map()}, module()) :: {:ok, struct()} | {:error, PINXS.Error.t()}