request_response_info.md

October 22, 2022 ยท View on GitHub

Request / Response information

Back to the navigation

Get response headers

Get the response header for the latest request

$headers = $githubClient->getLastResponse()->getHeaders();
//Example headers
$headers['X-RateLimit-Remaining'];
$headers['X-OAuth-Scopes'];
$headers['X-Accepted-OAuth-Scopes'];

Contents

  1. 1Request / Response information
  2. 1.1Get response headers