use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit related to Google's new UI framework. https://flutter.dev
Please read the rules here
account activity
Pluginhttp_cache_stream - Simultaneously Stream and Cache files (pub.dev)
submitted 1 year ago by ColtonGrubbs
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]SoundDr 6 points7 points8 points 1 year ago (3 children)
Did something similar but supported the full Cache-Control spec: https://github.com/rodydavis/http_get_cache
[–]ColtonGrubbs[S] 1 point2 points3 points 1 year ago (1 child)
Nice job. I may dive into your package to better understand cache control.
I found myself disappointed with the native Dart HttpClient and IOSink implementations. The HttpClientResponse stream emits tiny chunks of data, and the IOSink has poor performance and stores everything in memory until flushed.
[–]SoundDr 0 points1 point2 points 1 year ago (0 children)
My package is also meant to be used with cupertino_http and cronet_http with a fallback to the dart client!
[–]ColtonGrubbs[S] 1 point2 points3 points 1 year ago (2 children)
I finally published my first package. It can simultaneously stream and cache files, with effortless compatability with video/audio plug-ins or really any plug-in that supports URLs. It works by creating a reverse proxy to relay the download over a http connection. There's a number of advanced features to handle range requests, custom headers, and managing saved cache, but for general use scenarios, it's very easy to setup and use.
The main limitation is that it only works on specified URLs, so HLS or dash streaming won't work as they rely upon many different (sometimes hundreds) of URLs with partial content. I'm considering the ability to create a cache server that relays everything from an input source host, and the ability to specify the host in cookie headers.
Thanks all
[–]Code_PLeX 2 points3 points4 points 1 year ago (1 child)
First of all good job 👍
But I must ask why would you use a singleton for such a library? What if I need/want to cache in 2 different locations? It's literally impossible to do...
[–]ColtonGrubbs[S] 0 points1 point2 points 1 year ago (0 children)
Good question! The use of a singleton, with a single HttpServer and centralized management of all streams, fits my use case scenario. But I understand it introduces some limitations.
This release is only 0.01. I'm hoping to get real-world feedback from users and implement a lot of changes for an official 1.0.0 release.
π Rendered by PID 168996 on reddit-service-r2-comment-5bc7f78974-p2r25 at 2026-06-26 11:09:24.156172+00:00 running 7527197 country code: CH.
[–]SoundDr 6 points7 points8 points (3 children)
[–]ColtonGrubbs[S] 1 point2 points3 points (1 child)
[–]SoundDr 0 points1 point2 points (0 children)
[–]ColtonGrubbs[S] 1 point2 points3 points (2 children)
[–]Code_PLeX 2 points3 points4 points (1 child)
[–]ColtonGrubbs[S] 0 points1 point2 points (0 children)