We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48bd26c commit 8a6d6e9Copy full SHA for 8a6d6e9
doc/README.md
@@ -48,3 +48,4 @@ Additional features:
48
* [Request any Route](request_any_route.md)
49
* [Customize `php-github-api`](customize.md)
50
* [Running and writing tests](testing.md)
51
+* [Request / Response info](request_response_info.md)
doc/request_response_info.md
@@ -0,0 +1,14 @@
1
+## Request / Response information
2
+[Back to the navigation](README.md)
3
+
4
+### Get response headers
5
6
+Get the repsonse header for the latest request
7
8
+```
9
+$headers = $githubClient->getLastResponse()->getHeaders();
10
+//Example headers
11
+$headers['X-RateLimit-Remaining'];
12
+$headers['X-OAuth-Scopes'];
13
+$headers['X-Accepted-OAuth-Scopes'];
14
0 commit comments