httpclient

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package httpclient contains narrowly scoped HTTP client policies shared by plugin-provided MCP servers and lifecycle hooks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithOriginHeaders

func WithOriginHeaders(base *http.Client, endpoint string, headers map[string]string) (*http.Client, error)

WithOriginHeaders returns a shallow copy of base that adds headers only to requests targeting the configured endpoint's origin. Existing request headers always take precedence. Requests are cloned before modification so redirect handling cannot copy injected headers to another origin.

Types

This section is empty.

Jump to

Keyboard shortcuts

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