View Source Geocoder.Request (geocoder v2.2.1)
This is the actual request logic to abstract a client implementation and use supported clients specified for all providers in a uniform way.
Common logic (retry, etc) to clients should be added here. Otherwise let the client implement their own specific needs
Summary
Functions
@spec request( Geocoder.Request.HttpClient.request(), Geocoder.Request.HttpClient.config() ) :: {:ok, %{status_code: pos_integer(), headers: any()}} | {:ok, %{status_code: pos_integer(), headers: any(), body: binary()}} | {:error, any()}