httpclient

package
v0.131.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package httpclient provides per-client HTTP identity policy.

Index

Constants

View Source
const DefaultUserAgent = "KIT"

DefaultUserAgent identifies Kit-controlled requests.

Variables

This section is empty.

Functions

func ResolveUserAgent

func ResolveUserAgent(value string) (string, error)

ResolveUserAgent validates identity without trimming valid input.

func WithUserAgent

func WithUserAgent(client *http.Client, value string) *http.Client

WithUserAgent copies a client and enforces identity on each outgoing request. Callers must validate non-empty values with ResolveUserAgent first.

Types

This section is empty.

Jump to

Keyboard shortcuts

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