OAuthResponse
Last updated
Was this helpful?
Last updated
Was this helpful?
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()
.
Returns: The HTTP status code of the OAuth response.
Parameters
name ;
Returns: The value of the specified header, or null if the header is not present.
Returns: An array of all header names in the OAuth response.