fynjs API
    Preparing search index...

    Interface FynFetchInstance

    interface FynFetchInstance {
        defaults: FynFetchOptions;
        arrayBuffer(
            url: string | URL,
            options?: FynFetchOptions,
        ): Promise<ArrayBuffer>;
        blob(url: string | URL, options?: FynFetchOptions): Promise<Blob>;
        buffer(
            url: string | URL,
            options?: FynFetchOptions,
        ): Promise<Buffer<ArrayBufferLike>>;
        create(defaultOptions?: FynFetchOptions): FynFetchInstance;
        delete(url: string | URL, options?: FynFetchOptions): Promise<Response>;
        drain(res: Response | null | undefined): Promise<void>;
        extend(defaultOptions?: FynFetchOptions): FynFetchInstance;
        get(url: string | URL, options?: FynFetchOptions): Promise<Response>;
        head(url: string | URL, options?: FynFetchOptions): Promise<Response>;
        json<T = any>(url: string | URL, options?: FynFetchOptions): Promise<T>;
        patch(url: string | URL, options?: FynFetchOptions): Promise<Response>;
        post(url: string | URL, options?: FynFetchOptions): Promise<Response>;
        put(url: string | URL, options?: FynFetchOptions): Promise<Response>;
        stream(
            url: string | URL,
            destination: string | WritableStream,
            options?: FynFetchOptions,
        ): Promise<Response>;
        text(url: string | URL, options?: FynFetchOptions): Promise<string>;
        (url: string | URL, options?: FynFetchOptions): Promise<Response>;
    }
    • Parameters

      Returns Promise<Response>

    Index
    defaults: FynFetchOptions
    • Parameters

      Returns Promise<ArrayBuffer>

    • Parameters

      Returns Promise<Blob>

    • Parameters

      Returns Promise<Buffer<ArrayBufferLike>>

    • Parameters

      Returns Promise<Response>

    • Parameters

      • res: Response | null | undefined

      Returns Promise<void>

    • Parameters

      Returns Promise<Response>

    • Parameters

      Returns Promise<Response>

    • Type Parameters

      • T = any

      Parameters

      Returns Promise<T>

    • Parameters

      Returns Promise<Response>

    post

    • post(url: string | URL, options?: FynFetchOptions): Promise<Response>

      Parameters

      Returns Promise<Response>

    • Parameters

      Returns Promise<Response>

    • Parameters

      • url: string | URL
      • destination: string | WritableStream
      • Optionaloptions: FynFetchOptions

      Returns Promise<Response>

    • Parameters

      Returns Promise<string>