You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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
andhttp_request_streaming_callback
. I might need to modify theStreamingCallbackToken
or implement a customhttp_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 creatingStreamingStrategy::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 defaulthttp_request_streaming_callback
does not quite offer the flexibility I need. I think I can hack it with the currentStreamingCallbackToken
, but is there a possibility of implementing my own?The text was updated successfully, but these errors were encountered: