You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go-github supports github API's conditional requests, but it requires you to use your own Transport that is set up for it.
In one of my own projects that uses go-github, I would create an http.Client and set it's Transport to one created using https://github.com/gregjones/httpcache
I would then attach that Client to a context using it's WithValue method.
In order to support the various caching methods, it would be nice if we could pass in a Context object when setting up go-github-selfupdate, that way we could implement Conditional Requests on our end when using it.
The text was updated successfully, but these errors were encountered:
go-github supports github API's conditional requests, but it requires you to use your own Transport that is set up for it.
In one of my own projects that uses go-github, I would create an http.Client and set it's Transport to one created using https://github.com/gregjones/httpcache
I would then attach that Client to a context using it's WithValue method.
In order to support the various caching methods, it would be nice if we could pass in a Context object when setting up go-github-selfupdate, that way we could implement Conditional Requests on our end when using it.
The text was updated successfully, but these errors were encountered: