httpuseragent

package
v0.90.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default() string

Default returns the user-agent for Dingo's outbound HTTP requests. A non-empty DINGO_HTTP_USER_AGENT that is a valid header value overrides it; otherwise it names Dingo's version and the platform on which it was built.

func Set

func Set(req *http.Request)

Set sets Default as the request's user-agent unless the request already carries a User-Agent header. A present but empty header is kept, because net/http then sends no User-Agent at all.

Types

This section is empty.

Jump to

Keyboard shortcuts

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