Documentation
¶
Overview ¶
Package header provides header filtering for the tapes proxy.
This proxy sits between a client and an upstream LLM provider like so:
Client <--> Proxy <--> Upstream LLM Provider
and headers are handled accordingly as each leg negotiates compression, hops, encoding, etc. independently.
Index ¶
Constants ¶
View Source
const AgentNameHeader = "X-Tapes-Agent-Name"
AgentNameHeader is the optional header used to tag agent requests.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct{}
Handler manages headers between proxy connections.
func (*Handler) SetClientResponseHeaders ¶
SetClientResponseHeaders copies response headers from the upstream API http.Response to the Fiber context, filtering headers that the proxy should not forward back down to the client.
Click to show internal directories.
Click to hide internal directories.