OAuth2.Response

Defines a response struct from the HTTP response.

Struct fields

Source

Summary

new(status_code, headers, body)

Builds a new response struct from the HTTP response

Types

t :: %OAuth2.Response{status_code: integer, body: binary, headers: %{}}

Functions

new(status_code, headers, body)

Builds a new response struct from the HTTP response.

The response body is automatically parsed if the “Content-Type” is either:

  • application/x-www-form-urlencoded
  • text/plain
  • application/json
Source