Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,4 @@ Additional features:
* [Request any Route](request_any_route.md)
* [Customize `php-github-api`](customize.md)
* [Running and writing tests](testing.md)
* [Request / Response info](request_response_info.md)
14 changes: 14 additions & 0 deletions doc/request_response_info.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## Request / Response information
[Back to the navigation](README.md)

### Get response headers

Get the repsonse header for the latest request

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