Documentation
¶
Overview ¶
Package proxy implements the drop-in HTTP proxy mode:
squoze proxy --port 8787 --upstream https://api.anthropic.com
Contract: squoze never breaks a request. If the engine panics or the body is unreadable, the original bytes go upstream unchanged (fail-open).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the squoze HTTP proxy bound to one engine instance.
func NewWithEngine ¶
NewWithEngine binds the proxy to a specific engine (memo + originals shared across requests). A nil engine selects the package default. A nil upstream enables header-only routing: every request MUST carry X-Squoze-Upstream or gets a 502 (used by `sq <config-agent>` where each provider carries its own original endpoint).
Click to show internal directories.
Click to hide internal directories.