httpw

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const UserAgent = "ArtifactHub"

UserAgent is the user agent string used on requests made by ArtifactHub.

Variables

This section is empty.

Functions

func NewRequest

func NewRequest(method, url string, body io.Reader) (*http.Request, error)

NewHTTPRequest creates a new HTTP request with the ArtifactHub User-Agent header set. It's a wrapper around http.NewHTTPRequest that automatically adds the User-Agent header.

Types

This section is empty.

Jump to

Keyboard shortcuts

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