Skip to content

Refactor to allow for additional HTTP headers #353

@cosmocracy

Description

@cosmocracy

For new/experimental functionality, the GitHub API requires the submission of an additional header to enable features (see, for example, the API documentation note below related to the new Topics attributes):

image

Currently while the HTTP mechanisms are well-factored, they are only plugable via changes to the source code of this library. To ease extensibility (and meet the needs of additional headers), please consider either:

  • Implementing a Factory-style improvement that would allow for us to provide a Requester that could, for examlpe include the headers within the implementation of buildRequest, or
  • Provide a pathway for injecting headers into the Requester's headers property, possibly via a static-level "DefaultHeaders" that is publicly available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions