fynjs API
    Preparing search index...

    Interface FynFetchHooks

    interface FynFetchHooks {
        afterResponse?: (
            (
                response: Response,
                options: FynFetchOptions,
            ) => void | Response | Promise<void | Response>
        )[];
        beforeRequest?: (
            (
                options: FynFetchOptions,
                url: string,
            ) => void | Response | Promise<void | Response>
        )[];
        beforeRetry?: ((context: BeforeRetryContext) => void | Promise<void>)[];
    }
    Index
    afterResponse?: (
        (
            response: Response,
            options: FynFetchOptions,
        ) => void | Response | Promise<void | Response>
    )[]

    Executed after receiving a response. Can inspect response or return a replacement Response.

    beforeRequest?: (
        (
            options: FynFetchOptions,
            url: string,
        ) => void | Response | Promise<void | Response>
    )[]

    Executed before sending a request. Can modify options or return a Response to short-circuit.

    beforeRetry?: ((context: BeforeRetryContext) => void | Promise<void>)[]

    Executed before retrying a failed request.