OptionalfilenameThe filename to use in the zip archive. Defaults to the basename of the URL pathname, or 'file' if the pathname is '/'.
OptionalkeepWhether to keep empty response body (0 bytes) and create a zip with an empty file entry.
true: Empty response creates a zip with an empty file entryfalse: Empty response returns an EmptyBodyErrorOptionallevelCompression level for the zip operation.
0: No compression (store only) — best for already-compressed data1: Fastest compression6: Default compression (balanced)9: Best compression (slowest)Aligns with fflate's DeflateOptions.level.
Request init options for zipFromUrl.
Since
2.0.0