Browse Source

add doc section on conditional requests

Will Norris 12 years ago
parent
commit
e929dfd9ec
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      github/doc.go

+ 10
- 0
github/doc.go View File

@ -67,6 +67,16 @@ up-to-date rate limit data for the client.
Learn more about GitHub rate limiting at
http://developer.github.com/v3/#rate-limiting.
Conditional Requests
The GitHub API has good support for conditional requests which will help
prevent you from burning through your rate limit, as well as help speed up your
application. go-github does not handle conditional requests directly, but is
instead designed to work with a caching http.Transport. We recommend using
https://github.com/gregjones/httpcache, which can be used in conjuction with
https://github.com/sourcegraph/apiproxy to provide additional flexibility and
control of caching rules.
Creating and Updating Resources
All structs for GitHub resources use pointer values for all non-repeated fields.


Loading…
Cancel
Save