Skip to content

Port serverpod_client from http to dio - #1928

Closed
lukehutch wants to merge 13 commits into
serverpod:mainfrom
lukehutch:http-to-dio
Closed

lukehutch wants to merge 13 commits into
serverpod:mainfrom
lukehutch:http-to-dio

Conversation

@lukehutch

@lukehutch lukehutch commented Feb 17, 2024 •

Copy link
Copy Markdown
Contributor

Ports usage of http to dio in file_uploader.dart and serverpod_client_browser.dart.

Fixes #1927.

Pre-launch Checklist

  • I read the Contribute page and followed the process outlined there for submitting PRs.
  • This update contains only one single feature or bug fix and nothing else. (If you are submitting multiple fixes, please make multiple PRs.)
  • I read and followed the Dart Style Guide and formatted the code with dart format.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///), and made sure that the documentation follows the same style as other Serverpod documentation. I checked spelling and grammar.
  • I added new tests to check the change I am making.
  • All existing and new tests are passing.
  • Any breaking changes are documented below.

If you need help, consider asking for advice on the discussion board.

Breaking changes

I deprecated FileUploader.uploadByteData and FileUploader.upload (because these were horrendously inefficient), in favor of a new FileUploader.uploadUint8List. The docs will need to be updated to show this API change.

@lukehutch lukehutch changed the title Port from http to dio Port serverpod_client from http to dio Feb 17, 2024
@SandPod

SandPod commented Mar 13, 2024

Copy link
Copy Markdown
Contributor

Closing as won't fix.

Since the switch to the dio library didn't solve the issue referenced there is no need to add this additional dependency in to Serverpod at this point.

@SandPod SandPod closed this Mar 13, 2024
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 13, 2024
@lukehutch
lukehutch deleted the http-to-dio branch April 11, 2024 19:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use of http package should be moved to dio

2 participants