Help us shape the future of Go! Take the 2026 Go Developer Survey

backend

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Required common headers to send to the proxy server.
	AppVersionHeader        = "X-Lantern-App-Version"
	VersionHeader           = "X-Lantern-Version"
	PlatformHeader          = "X-Lantern-Platform"
	AppNameHeader           = "X-Lantern-App"
	DeviceIDHeader          = "X-Lantern-Device-Id"
	UserIDHeader            = "X-Lantern-User-Id"
	SupportedDataCapsHeader = "X-Lantern-Supported-Data-Caps"
	TimeZoneHeader          = "X-Lantern-Time-Zone"
	RandomNoiseHeader       = "X-Lantern-Rand"
	ProTokenHeader          = "X-Lantern-Pro-Token"
	RefererHeader           = "referer"
)

Variables

This section is empty.

Functions

func NewIssueRequest

func NewIssueRequest(ctx context.Context, method, url string, body io.Reader, user common.UserInfo) (*http.Request, error)

NewIssueRequest creates a new HTTP request with the required headers for issue reporting.

func NewRequestWithHeaders

func NewRequestWithHeaders(ctx context.Context, method, url string, body io.Reader, user common.UserInfo) (*http.Request, error)

NewRequestWithHeaders creates a new http.Request with the required headers.

Types

This section is empty.

Jump to

Keyboard shortcuts

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