Documentation
¶
Overview ¶
Package httpconst centralises HTTP header names and content-type strings shared by the API, MCP, and OTLP-HTTP handlers so the same literal isn't duplicated across packages.
Index ¶
Constants ¶
View Source
const ( // HeaderContentType is the canonical HTTP Content-Type header name. HeaderContentType = "Content-Type" // HeaderContentEncoding is the canonical HTTP Content-Encoding header // name, shared by the UI asset server and the API gzip middleware. HeaderContentEncoding = "Content-Encoding" // ContentTypeJSON is the application/json content type used by every JSON // response on the API and MCP surface. ContentTypeJSON = "application/json" )
Variables ¶
This section is empty.
Functions ¶
func AcceptsEncoding ¶
AcceptsEncoding reports whether the request's Accept-Encoding header lists the given encoding with a non-zero q-value. Minimal token parse — the "*" wildcard is deliberately not honoured (browsers and collectors always name the encodings they support), so callers never have to guess a preference order for it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.