httpclient

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGitHubClient

func NewGitHubClient() *http.Client

NewGitHubClient creates an HTTP client configured for GitHub API requests. It automatically adds the GitHub token from GITHUB_TOKEN environment variable if available.

func NewRequestWithGitHubAuth

func NewRequestWithGitHubAuth(method, url string) (*http.Request, error)

NewRequestWithGitHubAuth creates a new HTTP request and adds GitHub authentication if available. This is useful for one-off requests where you don't want to create a custom client.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL