[io.content.zip-stream]
io.content.zip-stream is a slot in the io namespace, in Hyperlambda, the language of Magic Cloud. Builds an in-memory zip stream from child entries; useful for returning an archive over HTTP without writing to disk.
- Returns: Resolves to a zip stream containing the supplied entries
Arguments
Required arguments come first, then the optional ones in the order they are declared.
| Argument | Type | Required | Description |
|---|---|---|---|
| any node name | string | yes | ZIP entry path. Can be repeated. |
| any node name / any node name | string|byte[] | yes | Entry content. |
Guide: How to use [io.content.zip-stream]
JSON declaration
This is the complete declaration of io.content.zip-stream, as the running system describes it. It is also published as slot.json.
JSON declaration
{
"name": "io.content.zip-stream",
"description": "Builds an in-memory zip stream from child entries; useful for returning an archive over HTTP without writing to disk",
"signature": {
"children": {
"*": {
"type": "string",
"kind": "zip-entry-path",
"description": "ZIP entry path",
"required": true,
"mode": "ExecutableLambda",
"cardinality": "OneOrMore",
"children": {
"*": {
"type": "string|byte[]",
"kind": "zip-entry-content",
"description": "Entry content",
"required": true,
"mode": "ExecutableLambda",
"cardinality": "ExactlyOne"
}
}
}
},
"output": {
"mode": "Value",
"kind": "zip-stream",
"description": "Resolves to a zip stream containing the supplied entries"
}
}
}
all io.* slots |
io.file.copy → |