http
http copied to clipboard
A composable API for making HTTP requests in Dart.
When creating a regular http request and manually using client.send not Header Host is added by default which makes the request fail (normally under 400) against standard web servers like...
Hello, everyone. I am facing the following problem: Sometimes I get this error: ``` _TypeError Null check operator used on a null value http_impl.dart in _HttpClient._returnConnection at line 2857 http_impl.dart...
I run the request code inside a try/catch block, but this exception seems to not be catched: ``` Future _serverAvailable() async { try { final response = await http .get(Uri.parse(availabilityUrl))...
`package:http` [Client](https://pub.dev/documentation/http/latest/http/Client-class.html) is an vital interface whose different implementations can be used to implement different supports/packages for http requests, such as enabling http/3 support or using Java APIs to resolve...
The streaming request will only return the result once on the flutter web platform, and cannot return the result of a single word, but it can return a single result...
### Add example to docs how to set `Client.headers` As in https://github.com/dart-lang/http/issues/193 i had the same problem that i did not understand how to use the [`headers` property](https://pub.dev/documentation/http/latest/http/BaseRequest/headers.html) of the...
I was just hit by it. It never occurred since today and it occurs on Hot Restart, almost at every app launch. ### Log ``` *** Assertion failure in -[CUPHTTPClientDelegate...
We are facing http connection issue when using CupertinoClient. CC: @brianquinlan would you be so kind as to take a quick look at this? Just noticed you might know why...
Google play services version: 23.31.16 OS: Android 10 Device: Redmi Note 9 ``` W/DynamiteModule( 2717): Failed to load remote module: Failed to get module context E/CronetProviderInstaller( 2717): Unable to load...
After PR #980 is merged we no longer need [java_http_test.dart](https://github.com/dart-lang/http/blob/067bff3b4727ed8633177010ff12d1121e764861/pkgs/java_http/test/java_http_test.dart), therefore the file will be removed in a future PR ([context](https://github.com/dart-lang/http/pull/980#discussion_r1253693596)). I'm wondering if we still need the other files...