Version: 2.67.0

InterceptableRequest

THEOplayer > InterceptableRequest

InterceptableRequest interface

Inherits from Request . See parent page for inherited properties and methods.

Represents an intercepted HTTP request which can be modified.

Signature:
export interface InterceptableRequest extends Request

Properties

Property

Type

Description

closed

boolean

Whether the request is closed.

Methods

Method

Description

redirect(request)

Replaces the original request with the provided request.

respondWith(response)

Immediately respond with the provided response.

waitUntil(fn)

Wait until the given callback is done before closing and executing this request.

waitUntil(promise)

Wait until the given promise is resolved before closing and executing this request.