OAuth2.Response
Defines a response struct from the HTTP response.
Struct fields
status_code
- HTTP response status codeheaders
- HTTP response headersbody
- HTTP response body (parsed based on “Content-Type” header)
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
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