StaticacceptedThe content coding to answer a request with.
the request's Accept-Encoding
br, gzip or '' for none
StaticaccountsWhether the ambient realm lets one browser hold several signed-in
accounts (#561): what data-sts-accounts says to the runtime.
authn.multipleAccounts; false where it cannot be read
StaticbrandThe ambient realm's sign-in appearance as a shell carries it (#717): its
stylesheet and its <html> attributes, or nothing for a shell it does
not apply to and for a realm that has set nothing.
the shell being drawn
{ attributes, stylesheet }
StaticcompressCompresses the body this response is about to end with, in the coding
the request accepts, and says Vary: Accept-Encoding either way. Call
it before the answer is sent.
the request
the response, not yet sent
nothing
StaticdocumentDraws a shell document.
what it is drawn from
the document, ending in a newline
StaticescEscapes text for HTML.
anything
the escaped text
StaticfooterThe page footer in the ambient request's language
(common/page_footer.ts).
its markup, or '' where it cannot be drawn
StaticimageThe img-src a shell names other origins in (#1300): the base policy's
'self' data: and each https origin given exactly, or nothing to add
where none is usable.
Optionalorigins: string[]
the origins asked for
{ 'img-src': … }, or an empty object
StaticoriginsThe distinct origins of a list of bases, for connect-src.
absolute URLs, or ''
their origins, each once
StaticpolicyThe Content-Security-Policy a shell is sent with, through
app.contentSecurityPolicy().
the express app, for its policy builder
Optionaloptions: ServeOptions
the other listeners' origins and extra directives
the header value
StaticreadReads a surface's built file and the .br and .gz beside it. A tree
that was never built (a checkout) has none: raw is then the
placeholder, a script that says so.
the directory the build wrote it in
its file name, portal-spa.js
what to serve when it was not built
the file and its precompressed forms
StaticsendSends a surface's file, compressed when the request accepts it; the caller has set its type and caching.
the request
the response
the file as served uncompressed
precompressed forms (br, gzip), or null
what the realm middleware would do to the text, or null
nothing
StaticsendSends a surface's built file: its type, no-cache (a new build is
picked up on the next load, with no version in the address), and the
coding the request accepts.
the request
the response
readFile()'s answer
its media type, application/javascript
nothing
StaticserveSends a shell: its policy, no-store, and the document, compressed
where the surface asks and the request accepts.
the express app, for its policy and its realm rewrite
the request
the response
the document
Optionaloptions: ServeOptions
the policy's origins and directives, and compression
nothing
The static surfaces' shell document and file sending. A static utility class; it holds no state.