Options
Path to the file within the repository
Branch name, tag, or commit SHA. Defaults to the default branch.
When
true, resolves the ref under the ephemeral namespace.When
true, resolves the base branch under the ephemeral namespace. TypeScript: ephemeralBase; Python: ephemeral_base; Go: EphemeralBase.HTTP
Range header, such as bytes=0-1023. TypeScript/Python: range; Go: Range.HTTP
If-Match header. TypeScript: ifMatch; Python: if_match; Go: IfMatch.HTTP
If-None-Match header. TypeScript: ifNoneMatch; Python: if_none_match; Go: IfNoneMatch.HTTP
If-Modified-Since header. TypeScript: ifModifiedSince; Python: if_modified_since; Go: IfModifiedSince.HTTP
If-Unmodified-Since header. TypeScript: ifUnmodifiedSince; Python: if_unmodified_since; Go: IfUnmodifiedSince.HTTP
If-Range header. TypeScript: ifRange; Python: if_range; Go: IfRange.Token TTL in seconds.
Returns
Returns a standard FetchResponse object (TypeScript), an async response object (Python), or an *http.Response (Go) that can be used to stream or read the file content.
When range or conditional headers are provided, statuses 206, 304, 412, and 416 are returned to the caller with their response headers.