licence_audit/archive_download
Types
pub type Error {
NetworkFailure(reason: error.GluegunError)
Timeout
UnexpectedResponse(status: Int)
DownloadTooLarge(limit: Int)
}
Constructors
-
NetworkFailure(reason: error.GluegunError) -
Timeout -
UnexpectedResponse(status: Int) -
DownloadTooLarge(limit: Int)
Values
pub fn fetch(
request: request.Request(BitArray),
timeout_ms: Int,
) -> Result(BitArray, Error)
pub fn fetch_with_limit(
request: request.Request(BitArray),
timeout_ms: Int,
limit: Int,
) -> Result(BitArray, Error)
Small limits let loopback tests exercise the same byte checks and teardown.
pub const max_download_bytes: Int