Skip to content

[Feature Request] Support Conditional Requests to reduce github api usage. #17

Description

@KaelBaldwin

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions