Skip to content

Improved http client #1098

@Blquinn

Description

@Blquinn

I'm using v0.12.0 for reference.

Is your feature request related to a problem? Please describe.

The current http client only returns the body from the response. It needs to return all of the response meta data as well. Status, headers etc.

Describe the solution you'd like

I would just return a response object from the rust side and allow people to handle the response however they need in javascript. It would probably make sense to try to emulate the api of popular http clients in the js world, like axios. Perhaps tauri could even supply a backend for one of those clients.

Describe alternatives you've considered

browser's fetch api et al.

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