Hierarchy

  • ScraperOptions

Properties

Properties

fetch: {
    (input, init?): Promise<Response>;
    (input, init?): Promise<Response>;
}

Type declaration

    • (input, init?): Promise<Response>
    • An alternative fetch function to use instead of the default fetch function. This may be useful in nonstandard runtime environments, such as edge workers.

      Parameters

      • input: RequestInfo | URL
      • Optional init: RequestInit

      Returns Promise<Response>

    • (input, init?): Promise<Response>
    • An alternative fetch function to use instead of the default fetch function. This may be useful in nonstandard runtime environments, such as edge workers.

      Parameters

      • input: string | Request | URL
      • Optional init: RequestInit

      Returns Promise<Response>

transform: Partial<FetchTransformOptions>

Additional options that control how requests and responses are processed. This can be used to proxy requests through other hosts, for example.