Comunica
    Preparing search index...

    Interface IActorHttpOutput

    The HTTP output, which contains the HTTP response.

    interface IActorHttpOutput {
        body: ReadableStream<Uint8Array<ArrayBuffer>> | null;
        bodyUsed: boolean;
        cachePolicy?: ICachePolicy<IActionHttp>;
        fromCache?: boolean;
        headers: Headers;
        ok: boolean;
        redirected: boolean;
        status: number;
        statusText: string;
        type: ResponseType;
        url: string;
        arrayBuffer(): Promise<ArrayBuffer>;
        blob(): Promise<Blob>;
        bytes(): Promise<Uint8Array<ArrayBuffer>>;
        clone(): Response;
        formData(): Promise<FormData>;
        json(): Promise<any>;
        text(): Promise<string>;
    }

    Hierarchy (View Summary)

    Index

    Properties

    body: ReadableStream<Uint8Array<ArrayBuffer>> | null
    bodyUsed: boolean
    cachePolicy?: ICachePolicy<IActionHttp>

    The cache policy of the request's response. This can be used to check if the given response is still valid for another request later on.

    fromCache?: boolean

    If the response was served from cache.

    headers: Headers

    The headers read-only property of the with the response.

    MDN Reference

    ok: boolean

    The ok read-only property of the Response interface contains a Boolean stating whether the response was successful (status in the range 200-299) or not.

    MDN Reference

    redirected: boolean

    The redirected read-only property of the Response interface indicates whether or not the response is the result of a request you made which was redirected.

    MDN Reference

    status: number

    The status read-only property of the Response interface contains the HTTP status codes of the response.

    MDN Reference

    statusText: string

    The statusText read-only property of the Response interface contains the status message corresponding to the HTTP status code in Response.status.

    MDN Reference

    type: ResponseType

    The type read-only property of the Response interface contains the type of the response.

    MDN Reference

    url: string

    The url read-only property of the Response interface contains the URL of the response.

    MDN Reference

    Methods

    • Returns Promise<ArrayBuffer>

    • Returns Promise<Blob>

    • Returns Promise<Uint8Array<ArrayBuffer>>

    • The clone() method of the Response interface creates a clone of a response object, identical in every way, but stored in a different variable.

      MDN Reference

      Returns Response

    • Returns Promise<FormData>

    • Returns Promise<any>

    • Returns Promise<string>