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
StaticlanguageThe lang and dir attributes a notice carries where its language is
not the document's.
the page's translator, or null
the shell being drawn
the attributes, with a leading space, or ''
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
StaticsaidOne message of a shell's notice, as HTML: the translator's where it has it, else the English given (which is HTML already).
the page's translator, or null
namespace.key
the English, as HTML, its parameters already in it
Optionalparams: Record<string, unknown>
optional; the message's parameters, escaped by html()
the message as HTML
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
StaticsupportThe link to what this service needs from a browser (#2220), in the page's language.
the page's translator, or null
a paragraph holding the link
StatictranslatorThe translator of the ambient request's page (PageLocale.forPage()),
for a shell's notices (#2220).
Optionalpage: any
optional; the application and person the page is for,
as PageLocale.forPage() takes them
the translator, or null where none can be had (English)
StaticunsupportedThe notice the browser check shows (#2220), drawn hidden in the page's language: its title, its sentence, the place the check names what is missing, and the link.
the page's translator, or null
the shell being drawn
the markup
The static surfaces' shell document and file sending. A static utility class; it holds no state.