SoulFire TypeScript SDK 2.10.3
    Preparing search index...
    DownloadResponse: Message<"soulfire.v1.DownloadResponse"> & {
        data: Uint8Array;
        headers: HeaderPair[];
        statusCode: number;
    }

    Response message containing the downloaded content and metadata. Returned after successfully fetching content from the requested URI.

    Type Declaration

    • data: Uint8Array

      The raw bytes of the downloaded content. This contains the complete response body from the target server. May be empty if the server returned no content (e.g., 204 No Content).

      from field: bytes data = 1;

    • headers: HeaderPair[]

      All HTTP headers returned by the target server in its response. Includes standard headers like Content-Type, Content-Length, Cache-Control, as well as any custom headers set by the server.

      from field: repeated soulfire.v1.HeaderPair headers = 2;

    • statusCode: number

      The HTTP status code returned by the target server (e.g., 200, 404, 500). Common values:

      • 200: OK - Request succeeded
      • 301/302: Redirect (note: redirects may be followed automatically)
      • 400: Bad Request
      • 401: Unauthorized
      • 403: Forbidden
      • 404: Not Found
      • 500: Internal Server Error

      from field: int32 status_code = 3;

    from message soulfire.v1.DownloadResponse