Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶ added in v0.5.1
type Option func(*options)
Option customizes server creation.
func WithCopilotHeaderConfig ¶ added in v0.5.1
func WithCopilotHeaderConfig(cfg proxy.CopilotHeaderConfig) Option
WithCopilotHeaderConfig overrides the synthetic Copilot-identifying headers sent on upstream requests.
func WithProxyOptions ¶ added in v0.5.1
WithProxyOptions forwards proxy-level options to the underlying handler.
func WithResponsesWebSocketConfig ¶ added in v0.6.0
func WithResponsesWebSocketConfig(cfg proxy.ResponsesWebSocketConfig) Option
WithResponsesWebSocketConfig overrides websocket-session handling for GET /v1/responses Codex clients.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server encapsulates the HTTP server lifecycle.
func New ¶
func New(authenticator *auth.Authenticator, log *logger.Logger, host, port string, opts ...Option) *Server
New creates a Server with routes and timeouts configured.
Click to show internal directories.
Click to hide internal directories.