UrlParserDefault class

Default URL parser implementation. Handles caching, downloading, and parsing of common video files. Implements the UrlParser interface for common video files.

Implemented types

Constructors

UrlParserDefault.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cache(DownloadTask task) Future<Uint8List?>
Retrieves cached data for the given task from memory or file.
override
concurrent(DownloadTask task, Map<String, String> headers) Future<void>
Manages concurrent download tasks.
deleteExceedSizeFile(DownloadTask task) Future<void>
Deletes the file if it exceeds the expected segment size.
download(DownloadTask task) Future<Uint8List?>
Downloads data from the network for the given task.
override
Sends a HEAD request to get the content length of the resource at uri.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse(Socket socket, Uri uri, Map<String, String> headers) Future<bool>
Parses the request and returns the data to the socket.
override
parseAndroid(Socket socket, Uri uri, List<String> responseHeaders, int requestRangeStart, int requestRangeEnd, Map<String, String> headers) Future<void>
Parses and responds to range requests on Android.
parseIOS(Socket socket, Uri uri, List<String> responseHeaders, int requestRangeStart, int requestRangeEnd, Map<String, String> headers) Future<void>
Parses and responds to range requests on iOS.
precache(String url, Map<String, Object>? headers, int cacheSegments, bool downloadNow, bool progressListen) Future<StreamController<Map>?>
Pre-caches data from the network.
override
push(DownloadTask task) Future<void>
Pushes the task to the download manager for processing. If the task is already in the download manager or cache, does nothing.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited