OAuth2.Response (OAuth2 v2.0.1) View Source

Defines the OAuth2.Response struct which is created from the HTTP responses made by the OAuth2.Client module.

Struct fields

  • status_code - HTTP response status code
  • headers - HTTP response headers
  • body - Parsed HTTP response body (based on "content-type" header)

Link to this section Summary

Link to this section Types

Specs

body() :: binary() | map() | list()

Specs

headers() :: [{binary(), binary()}]

Specs

status_code() :: integer()

Specs

t() :: %OAuth2.Response{
  body: body(),
  headers: headers(),
  status_code: status_code()
}