Trails Packages
    Preparing search index...

    Interface BeforeRequestParams

    Options passed to Interceptor.beforeRequest.

    interface BeforeRequestParams {
        context: ContextData;
        options: ResolvedRequestOptions;
        signal: AbortSignal;
        target: URL;
    }
    Index

    Properties

    context: ContextData

    The context object holds arbitrary values associated with this http request. Interceptors can read and modify values within this object.

    The options that were used when the request was made. Option values (such as headers) can be modified by an interceptor.

    signal: AbortSignal

    The signal can be used to listen for cancellation. This is useful if an interceptor may run for a longer time.

    target: URL

    The request's target URL, including query parameters.

    This property can be changed by the interceptor.