Now that streaming in the service worker is live I’m wondering how I get it working in a non asset canister. I think @nomeata wrote something on it but I can’t seem to find it …
How do I create those certificates for assets and how do I store them
Now that streaming in the service worker is live I’m wondering how I get it working in a non asset canister. I think @nomeata wrote something on it but I can’t seem to find it …
How do I create those certificates for assets and how do I store them
Essentially you have to implement this interface and respond to http_request
with a StreamingToken
: interface-spec/http-gateway.did at master · dfinity/interface-spec · GitHub
You can look at an implementation here: cdk-rs/src/ic-certified-assets at main · dfinity/cdk-rs · GitHub
Streaming works, my issue are certified assets in motoko ^^ Unfortunately I’m not really fluent in Rust
Found it