http
http copied to clipboard
A composable API for making HTTP requests in Dart.
Move `headersSplitValues` into `BaseClient` and allow the `headers` parameter in the `BaseClient` constructor to be `Map` or `Map`. --- - [X] I’ve reviewed the contributor guide and applied the relevant...
This code: ```dart final engine = CronetEngine.build( cacheMode: CacheMode.memory, cacheMaxSize: 2 * 1024 * 1024, userAgent: 'Book Agent', ); final httpClient = CronetClient.fromCronetEngine(engine); final response = httpClient .get( Uri.https('google.com'), )...
During the development of https://github.com/dart-lang/http/pull/1104, the test frequently fails without showing an obvious reason, which makes it hard to track the root cause. We should find a more stable solution...
> https://github.com/dart-lang/http/pull/1104#discussion_r1447747121 As it turns out the library is trying to pull the stdlib from somewhere which causes conflicts. This is also tracking in https://github.com/flutter/flutter/issues/125062. todo: - Remove unnecessary jdk*...
The request provides the ability to extract the redirections from an `IOStreamedResponse`. --- - [x] I’ve reviewed the contributor guide and applied the relevant portions to this PR. Contribution guidelines:...
Since we now recommend `package:http` as instead of the web specific APIs, we should investigate ways to reduce the bundle size added by using the package. Using just the top-level...
[`prepare_for_embedded.dart`](https://github.com/dart-lang/http/blob/master/pkgs/cronet_http/tool/prepare_for_embedded.dart) updates `build.gradle` to use the latest version of Cronet. This leads to the possible problem that the version of Cronet included in a release may not have been tested....
Using ```cronet_http``` for a research application, I have encountered a lacking feature. I would like to know the protocol I have agreed upon with the server I am communicating with....
I am trying to define a connectionTimeout for my BroswerClient object the same as HttpClient. Is there an alternative for that in BrowserClient class? ```dart http.client = kIsWeb ? BrowserClient()...
There are Request and StreamedRequest in http package. What does streaming mean in the context of this http package? I think streaming means something like transferring bytes in chunks in...