universal_io
universal_io copied to clipboard
Cross-platform 'dart:io', including browser-compatible HttpClient.
Fixes https://github.com/dint-dev/universal_io/issues/34
Fixes https://github.com/dint-dev/universal_io/issues/35
When using the browser version of HttpClientRequest and calling `addStream()` it fails with the following error message: `StateError: StreamSink is bound to a stream` https://github.com/dint-dev/universal_io/blob/221ea9a5938d6cac68fe92238b7bf91d09ee566b/lib/src/browser/http_client_request.dart#L149-L166 `addStream()` checks and sets `_addStreamFuture`...
The copied ContentType implementation ignores the given parameters and therefore things like "boundary" don't work in browsers. Original code which would be needed: https://github.com/dart-lang/sdk/blob/36e8d9ab6fbfbc148a41fd9baa75b7ab8dd4aa9b/sdk/lib/_http/http_headers.dart#L902-L912 Is missing here: https://github.com/dint-dev/universal_io/blob/221ea9a5938d6cac68fe92238b7bf91d09ee566b/lib/src/http/http_headers.dart#L658-L672
I have a `Uint8List` i want to create a `file`path . But i'm getting `Error: FormatException: Invalid UTF-8 byte (at offset 0)` ```dart Uint8List unit8List; uio.File createFileFromUint8List(Uint8List uint8list) => uio.File.fromRawPath(uint8list);...
Hello! According to the Appendix of Apache License 2.0, if you want to license your software under this License you should "attach the boilerplate notice, with the fields enclosed by...
Something is not clear for me about the web support. I will take an example to explain. If I have a mobile application that download and saves file on local...
When I try to convert using universal IO package,Im getting Missing extension byte at 11.Please provide solution to convert uint8list byte to file or please provide solution to download file...
Hi! I encountered an issue when using this package as a replacement for dart:io for web. The class OSError does not extend Exception in universal_io, while in dart:io it does...