8000 🚀 Feature: Support for custom httpClient · Issue #255 · appwrite/sdk-for-flutter · GitHub
[go: up one dir, main page]

Skip to content
🚀 Feature: Support for custom httpClient #255
Open
@gandhimaulik

Description

@gandhimaulik

🔖 Feature description

While creating instance of appwrite.client, there should be option to pass custom http.client for all(or possible) requests. This gives flexibility to use better implementations like retryClient, fetch_client, cronet_http etc.
It helps app to use native implementations or http/2 and other features transparently.

🎤 Pitch

Reasons:

  1. we can easily use retryClient for our app provided by http package itself.
  2. we can experiement with platform native http implementations like cron 5649 et_http Interesting comparision about httpclients
  3. It is standard guidance from http package as below

This is standard guidance for package creators from http package page in Tip:

If you are writing a Dart package or Flutter plugin that uses package:http, you should not depend on a particular Client implementation. Let the application author decide what implementation is best for their project. You can make that easier by accepting an explicit Client argument

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0