Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteHTTPError ¶
func WriteHTTPError(parseW http.ResponseWriter, parseStatus int, parseReport Report)
WriteHTTPError emits the report and writes it as a plain-text HTTP error response.
This lives behind !js so browser/wasm builds never link net/http: that import chain (http → crypto/tls → x509 → dnsmessage) costs roughly a megabyte of wasm for a helper only servers can call.
Types ¶
type Report ¶
type Report struct {
Summary string
Code string
Headline string
Where string
Path string
Error string
Runtime string
Next string
Docs string
AppFrames []string
FrameworkFrames []string
PlatformFrames []string
}
Click to show internal directories.
Click to hide internal directories.