Documentation
¶
Overview ¶
Package shape is the edge shaping middleware (ADR-0114, F78): CORS (preflight + ACAO), response header inject/strip, and gzip compression that SKIPS streaming (text/event-stream) and upgrades (Connection: Upgrade / 101) and FORWARDS http.Flusher + http.Hijacker so SSE/WebSocket pass through unbroken. Additive (never rejects) and pass-through when unconfigured. It is the innermost edge middleware so it wraps the real upstream response.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CORS ¶
type CORS struct {
AllowOrigins []string
AllowMethods []string
AllowHeaders []string
MaxAgeSeconds int
}
CORS configures cross-origin response headers + preflight handling.
Click to show internal directories.
Click to hide internal directories.