HttpContainer
class HttpContainer(baseUrl: Url? = null, val entries: Set<Url>, client: HttpClient) : Container<Resource>
Fetches remote resources through HTTP.
Since this container is used when doing progressive download streaming (e.g. audiobook), the HTTP byte range requests are open-ended and reused. This helps to avoid issuing too many requests.
Parameters
baseUrl
Base URL from which relative URLs are served.
entries
Entries of this container as Urls absolute or relative to baseUrl.
client
HTTP client used to perform HTTP requests.
Properties
Functions
Link copied to clipboard
inline suspend fun <S> Container<Readable>.readDecodeOrNull(url: Url, decode: (ByteArray) -> Try<S, DecodeError>): S?