gcs v0.0.1 GCS.Client behaviour View Source

A behavior for defining your own http_client callback module, allowing you to use your favorite HTTP client in place of HTTPoison

Link to this section Summary

Callbacks

Called by GCS when making HTTP requests.

Link to this section Types

Link to this type

headers()

View Source
headers() :: [{String.t(), String.t()}]
Link to this type

method()

View Source
method() :: :get | :put | :post | :delete

Link to this section Callbacks

Link to this callback

request(method, path, body, headers, opts)

View Source
request(method(), path(), body(), headers(), opts()) ::
  {:ok, body()} | {:error, reason()}

Called by GCS when making HTTP requests.