OAuthResponse
Overview
The OAuthResponse
class is used to handle HTTP responses in the context of OAuth-based API interactions. It provides mechanisms to retrieve the HTTP status code, individual header values, and all header names associated with the response.
Key functionalities include the ability to fetch the HTTP status code through getCode()
, retrieve a specific header value using getHeader(name)
, and obtain a list of all headers with getHeaders()
.
Methods Summarized
Type
Name
Summary
Methods Detailed
getCode()
Returns: Number
getHeader(name)
Parameters
String name ;
Returns: String
getHeaders()
Returns: Array
Last updated