Table of Contents

Class HttpOnnxModelSourceOptions

Namespace
Qavren.Edge.Onnx
Assembly
Qavren.Edge.Onnx.dll

How HttpOnnxModelSource fetches. BaseAddress and UrlTemplate together are the ONLY place a Hugging Face URL is constructed - nothing else in this suite concatenates one - so a consumer pointing at a mirror or a corporate proxy changes exactly these two properties.

public sealed class HttpOnnxModelSourceOptions
Inheritance
HttpOnnxModelSourceOptions
Inherited Members

Properties

AllowDownload

False turns a missing model into ModelNotProvisioned instead of a download - the switch an app flips on cellular.

BaseAddress

The host every download is resolved against.

BearerToken

A Hub token, for a gated repo. Sent only over HTTPS or to a loopback address: with any other BaseAddress the download is refused rather than the token put on the wire in clear.

BodyTimeout

The longest a response body may go without delivering a byte. HttpClient.Timeout stops applying once the response headers are read, so without this a stalled body hangs forever. The clock restarts every time bytes arrive: it bounds a stall, not the transfer, so a slow link that keeps moving finishes a gigabyte-sized file in one attempt.

FreeDiskMarginBytes

Headroom kept free on the volume, on top of the bytes still to fetch.

MaxAttempts

Total attempts per file, including the first. Backoff is exponential with jitter.

UrlTemplate

{repo}/resolve/{revision}/{path}. The three placeholders are positional-by-name, and {revision} is filled from the manifest's pinned commit SHA, never "main".