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.
Click to show internal directories.
Click to hide internal directories.