Makes the page's runtime base.
the browser's objects: fetch, location, history,
document, and whatever the subclass reads; for a test, formDataOf
the realm's path prefix, '' in the default realm
Optionalelsewhere: Record<string, string>
the shell's attributes by the first path segment each
stands for: { '/oauth2': 'data-sts-oauth', ... }
A form's fields as an object: a repeated name is an array, the pressed button's name and value are included, and the CSRF field a form drawn by the server carried is left out (an API call is not a form post).
the form element
the button pressed, if any
the fields
Calls an operation that takes no token, sending an object as JSON, and reads its JSON.
GET or POST
the path under the realm
Optionalbody: any
for a POST, an object
Optionalheaders: any{ status, json, res }, json null where the body was not
JSON
Saves a file an answer carried as base64.
its file name
its media type
its bytes
nothing
Hands a blob to the browser as a download.
the file's name
its contents
nothing
Saves text as a file.
the file's name
its media type
its contents
nothing
Makes the address's fragment the :target of the page just drawn.
nothing
This realm's address for one of its paths: on this origin, or on the listener that answers the path where the shell named one.
/oauth2/token, /web/locales/catalogs.json
the absolute URL
StaticattributeOne attribute of the shell's <html> element.
the browser's objects
the attribute, data-sts-build
its value, or '' where it is absent
StaticbasesReads the shell's data-sts-* attributes into bases by path segment.
the browser's objects; its document is read
the attribute for each first path segment
the bases, without a trailing slash, '' where absent
StaticprefixSplits a path at a surface's base: the realm prefix before it.
a path, /realm/acme/portal/keys or /portal
the surface's first path, /portal
the prefix, '' in the default realm and where the path is not under the base
StaticqueryParses a query string into an object, the last value of a repeated name winning as express's own parser does for a single value.
?a=1&b=2 or ''
the query
StaticrealmPrefixes every root-relative href, action, formaction and src.
the page
the realm's path prefix, or '' for the default realm
the page with its links in the realm
StaticstepMoves a sign-in step's id from a link's query to its fragment (#1454).
/authn/spnego stays: RFC 4559's exchange has no script to read one.
the link
the link to use
StaticstepTakes a step's id off an API address, for a header (#1454).
the operation's address
the address, and the headers that carry what left it
The base of every static surface's runtime: where things are, fetch, forms and links.