http
http copied to clipboard
A composable API for making HTTP requests in Dart.
We deploy a Flutter app and have been noticing frequent exceptions from our HTTP requests: ``` SocketException: OS Error: Bad file descriptor, errno = 9, address = , port =...
On the SDK we now have an option to pass `preserveHeaderCase` when setting Http headers to work around the default behavior of converting them all to lowercase. Some (non spec...
_From @DuanTzXavier on July 17, 2018 7:32_ Come from flutter!on **MacOS** ### Logs ``` 07-14 01:59:51.068 2137-2153/top.basking.calculator I/flutter: 200 07-14 01:59:51.068 2137-2153/top.basking.calculator I/flutter: {connection: keep-alive, content-type: application/json; charset=utf-8;, transfer-encoding: chunked,...
I have the following image https://www.gardeningknowhow.com/wp-content/uploads/2012/10/date-palm.jpg It works fine on browser  but not using this lib ````dart get(Uri.parse("https://www.gardeningknowhow.com/wp-content/uploads/2012/10/date-palm.jpg")).then((Response value) { print("request -> ${value.request}"); print("statusCode -> ${value.statusCode}"); print("reasonPhrase -> ${value.reasonPhrase}");...
Right now `StreamedRequest.sink` is declared as an `EventSink`: ```dart /// The sink to which to write data that will be sent as the request body. /// /// This may be...
how to add progress value on sending data ????
Hi! I can't get any response header from xhr response. Only "content-type" -> "application/json" and "content-length" -> "206" are retrieved I did some debug and this only happen when executing...
Field value containing a non English character is invalid like 'Pétange'. If changed to 'Petange' is OK. Any idea ? ` Map _headers = { 'authorization': basicAuth, 'Entity': 'Pétange', };...
When a `ClientException` is thrown [from here in `io_client.dart`](https://github.com/dart-lang/http/blob/7774121a406fedb0502fce7cc224476c1ac78469/lib/src/io_client.dart#L65), it does not preserve the original HttpException's stacktrace (because of [this still open issue](https://github.com/dart-lang/sdk/issues/30741) there is no way to preserve the...