ExCorreios v1.1.4 ExCorreios.Calculator.Request.Response View Source

This module transforms a xml body of an http response into a map or a list of maps.

Link to this section Summary

Link to this section Functions

Link to this function

process(arg)

View Source
process(
  {:ok,
   %HTTPoison.Response{
     body: term(),
     headers: term(),
     request: term(),
     request_url: term(),
     status_code: term()
   }}
) :: {:ok, [struct()]}
process(
  {:error, %HTTPoison.Error{__exception__: term(), id: term(), reason: term()}}
) :: {:error, String.t()}