A render environment built to support the JSDOM 16.x API.

Hierarchy

  • Environment

Implements

Constructors

Properties

_configuration: IJSDOMConfiguration
_retrieveTargetFiles: ((url, renderAPI, resourceLoader) => Promise<JavaScriptFiles>) = ...

Type declaration

    • (url, renderAPI, resourceLoader): Promise<JavaScriptFiles>
    • Parameters

      • url: string
      • renderAPI: RenderAPI
      • resourceLoader: CloseableResourceLoader

      Returns Promise<JavaScriptFiles>

render: ((url, renderAPI) => Promise<RenderResult>) = ...

Type declaration

    • (url, renderAPI): Promise<RenderResult>
    • Generate a render result for the given url.

      Parameters

      • url: string

        The URL that is to be rendered. This is always relative to the host and so does not contain protocol, hostname, nor port information.

      • renderAPI: RenderAPI

        An API of utilities for assisting with the render operation.

      Returns Promise<RenderResult>

      The result of the render that is to be returned by the gateway service as the response to the render request. This includes the body of the response and the status code information.

Methods

Generated using TypeDoc