pub async fn get_offline_tarball(
__arg0: State<AppState>,
req: RequestState,
headers: HeaderMap,
__arg3: Path<(String, String)>,
) -> ResponseExpand description
GET /releases/{platform}/{version}.tar
Serves an offline installer tarball containing the manifest and all chunks. Supports HTTP Range requests for resumable downloads.
The tarball structure is:
ctoolbox-{platform}-{version}/
├── manifest.json
├── chunks/
│ ├── {hash1}.br
│ ├── {hash2}.br
│ └── ...
└── ctoolbox-installer (optional, if installer binary exists)§Range Request Support
This endpoint supports the Range header for resumable downloads:
Range: bytes=0-- Start from beginningRange: bytes=1000-- Resume from byte 1000Range: bytes=1000-2000- Request specific range
Range requests return 206 Partial Content with appropriate headers.