Documentation
¶
Overview ¶
Package instanceheader names, on every HTTP response, the platform process that served it. Replicas of one deployment share a database and differ in the state each holds in memory, so a defect of that kind is visible only to a reader who can tell which replica answered (#1708).
Index ¶
Constants ¶
const BuildHeader = "X-Platform-Build"
BuildHeader names the build that served a response (#2727): the version and commit buildinfo.Build reports. An open portal page compares it with the build it loaded and moves to a new one, so a fix that shipped reaches a page left open across the upgrade. Only an answer to a signed-in caller the portal's access gate admitted carries it (accessgate.Require): the build is not told to an anonymous caller, a site's visitor, an endpoint's caller or a share's reader.
const Header = "X-Platform-Instance"
Header is the response header that carries the process name.
Variables ¶
This section is empty.
Functions ¶
func Middleware ¶
Middleware sets Header on every response, before the handler runs, so a refusal written by any layer below carries it.
Types ¶
This section is empty.