Streaming N S U R L Session Http Engine
An HttpEngine based on NSURLSession with the ability to stream data as it is received when using Transfer-Encoding: Chunked
. This is useful when using @defer
.
Note: this implementation only works when using the new native memory manager as multiple threads mutate the internal state.
That is why it is considered experimental and subject to change.
Using the default DefaultHttpEngine will work when using @defer
, but the payloads are buffered until the response is fully received, thus losing the incremental nature of the response.
Constructors
StreamingNSURLSessionHttpEngine
Link copied to clipboard
Functions
dispose
Link copied to clipboard
open override fun dispose()
Content copied to clipboard
Disposes any resources used by the HttpEngineUse this to dispose a connection pool for an example.
execute
Link copied to clipboard