@zero-transfer/http
v0.4.7
Published
HTTP(S) and signed-URL provider with ranged downloads.
Downloads
1,574
Maintainers
Readme
@zero-transfer/http
HTTP(S) and signed-URL provider with ranged downloads.
Install
npm install @zero-transfer/httpOverview
Read-only HTTP(S) provider with HEAD-based metadata, ranged GET resume, Basic auth, Bearer-token auth via secret sources, and ETag exposed as both uniqueId and read-result checksum. Useful for signed-URL downloads and CDN ingest.
Usage
import {
createTransferClient,
uploadFile,
downloadFile,
createHttpProviderFactory,
} from "@zero-transfer/http";Public surface
This package publishes a narrowed surface of 3 exports. These symbols are also available from @zero-transfer/sdk; the table below links into the full API reference:
| Symbol | Kind | Notes |
| --------------------------------------------------------------------------------------------------------------------------------------- | --------- | ------------------ |
| createHttpProviderFactory | Function | See API reference. |
| HttpProviderOptions | Interface | See API reference. |
| HttpFetch | Type | See API reference. |
Examples
| Example | What it shows |
| -------------------------------------------------------------------------------------------------------------------------- | --------------------------------- |
| examples/signed-url-download.ts | Signed-URL HTTP download example. |
Documentation
License
MIT © Tony Wiedman
