Documentation ¶ Overview ¶ Package httpx wraps a server.Mux as an http.Handler. Stream responses are emitted as SSE; everything else is JSON. Index ¶ func Wrap(m *server.Mux) http.Handler Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Wrap ¶ func Wrap(m *server.Mux) http.Handler Wrap returns an http.Handler that proxies every request into the mux's Dispatch. Auth/CORS/logging belong in middleware around the returned handler, not in here — the mux itself is transport-agnostic. Types ¶ This section is empty. Source Files ¶ View all Source files wrap.go Click to show internal directories. Click to hide internal directories.