sentry v8.0.0-rc.0 Sentry.HTTPClient behaviour

Specifies the API for using a custom HTTP Client.

Link to this section Summary

Link to this section Types

Specs

headers() :: [{String.t(), String.t()}]

Link to this section Callbacks

Specs

child_spec() :: :supervisor.child_spec()
Link to this callback

post(url, headers, body)

Specs

post(url :: String.t(), headers(), body :: String.t()) ::
  {:ok, status :: pos_integer(), headers(), body :: String.t()}
  | {:error, term()}