Skip to content

[Feature Request] new type for automaFetch to get the original Response object #2075

@KiritaniAyaka

Description

@KiritaniAyaka

Problem

I always need to get data from the response header, but the current automaFetch is not possible to achieve this. It only accepts text and json and handles the response body underhood.

Solution

I want the automaFetch could have a new type response which makes it return the original web standard Response object.

Alternative

For APIs we have control, we need to negotiate with other developers to change the behavior of endpoints.

For APIs we don't have control, it's not possible to resolve the problem. ( fetch is not a choice because of CORS )

Additional

I think it's necessary not only on this scene, but also when the response is an octo stream.

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