Service Worker Bug? Body does not pass verification

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 :thinking:

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

2 Likes

Streaming works, my issue are certified assets in motoko ^^ Unfortunately I’m not really fluent in Rust

1 Like

Found it

1 Like