Skip to content
This repository was archived by the owner on Nov 11, 2023. It is now read-only.
This repository was archived by the owner on Nov 11, 2023. It is now read-only.

Handle file downloads #391

@amacleay-cohere

Description

@amacleay-cohere

Is your feature request related to a problem? Please describe.
Sometimes, the response from an API we wish to use is some media type that can't easily be parsed into text, and I wish to receive it as a blob.

Describe the solution you'd like
Respond to format: binary in the response description and return a blob from useGet/useMutate

Describe alternatives you've considered
I can bypass restful-react processing by providing a type of */*, and I get back the raw Response object, thanks to #262, which is fine, although requires typescript hacking

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions