Raccolta: 429 del CDN come rallentamento, attese crescenti e recupero dei falliti, storico e seguiti senza pagina di ripresa, lacuna sotto la prima pagina, eliminazioni durante lo scaricamento (regole-3, cdn-429, dl-1, post-loop, walk-1, check-1, scroll-1, reader-1, h9-1, ring-1, library-2, dedup-1, tmp-1, budget-1, regole-4, kind-1, vocab-1)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Mzbb6zeFTjT6Rp8b92AVkA
This commit is contained in:
28 files changed
+2619
-200
No files matched your search
@@ -27,10 +27,23 @@ public enum FetchOutcome
|
||||
public sealed record FetchResult(FetchOutcome Outcome, long Bytes, int? HttpStatus, string? Error)
|
||||
{
|
||||
public bool Succeeded => Outcome == FetchOutcome.Completed;
|
||||
|
||||
/// <summary>
|
||||
/// Bytes that crossed the network when they are known to be more than <see cref="Bytes"/>: a file over the size
|
||||
/// limit is loaded whole by the browser before the first byte can be read (its declared length), even though
|
||||
/// only part of it, or nothing, is written. Null when it is <see cref="Bytes"/>.
|
||||
/// </summary>
|
||||
public long? TransferredBytes { get; init; }
|
||||
|
||||
/// <summary>What the daily data budget must count for this download: the larger of written and transferred.</summary>
|
||||
public long BudgetBytes => Math.Max(Bytes, TransferredBytes ?? 0);
|
||||
}
|
||||
|
||||
/// <summary>Options of a single download.</summary>
|
||||
/// <param name="MaxBytes">Abort with <see cref="FetchOutcome.TooLarge"/> past this size; null for no limit.</param>
|
||||
/// <param name="MaxBytes">
|
||||
/// Abort with <see cref="FetchOutcome.TooLarge"/> past this size; null for no limit. Through the browser the limit
|
||||
/// saves disk, not network: <c>Network.loadNetworkResource</c> loads the whole resource before handing out its stream.
|
||||
/// </param>
|
||||
/// <param name="Progress">Receives the number of bytes written so far.</param>
|
||||
public sealed record FetchOptions(long? MaxBytes = null, IProgress<long>? Progress = null);
|
||||
|
||||
|
||||
Reference in new issue
Block a user