Also on the forum: https://forum.dfinity.org/t/custom-streamingcallbacktoken/9379
This issue has come up while implementing #10
I would like some clarification on StreamingCallbackToken
and http_request_streaming_callback
. I might need to modify the StreamingCallbackToken
or implement a custom http_request_streaming_callback
, but I am not sure if I am able to do that.
Is http_request_streaming_callback
a special function? I assume I could name the function anything I want when creating StreamingStrategy::Callback
, is that correct?
If that's the case, can I also change the StreamingCallbackToken
parameter?
The problem I am trying to solve is that of 206 Partial Content
responses. I need to return very custom slices of content, because the client could request any range of bytes on an asset. The default http_request_streaming_callback
does not quite offer the flexibility I need. I think I can hack it with the current StreamingCallbackToken
, but is there a possibility of implementing my own?