Documentation
¶
Overview ¶
Package httpx centralizes the CLI's outbound HTTP security policy.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIBaseURL ¶
APIBaseURL adds Normatik's fixed API context path to a canonical site URL.
func CanonicalSiteURL ¶
CanonicalSiteURL normalizes the user-facing environment URL. A legacy trailing /api context path is stripped because transports own that prefix.
func NewClient ¶
NewClient creates an HTTP client that follows redirects only within the exact original origin (scheme, hostname and effective port).
func ValidateBaseURL ¶
ValidateBaseURL allows HTTPS everywhere and plaintext HTTP only for literal loopback targets when the development opt-in is exactly "1".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.