IResourceHandlerReadResponse Method |
Version 55.0.0
Read response data. If data is available immediately copy to
dataOut, set bytesRead to the number of bytes copied, and return true.
To read the data at a later time set bytesRead to 0, return true and call ICallback.Continue() when the
data is available. To indicate response completion return false.
Namespace: CefSharpAssembly: CefSharp (in CefSharp.dll) Version: 55.0.0.0 (55.0.0.0)
Syntax bool ReadResponse(
Stream dataOut,
out int bytesRead,
ICallback callback
)
bool ReadResponse(
Stream^ dataOut,
[OutAttribute] int% bytesRead,
ICallback^ callback
)
Parameters
- dataOut
- Type: System.IOStream
Stream to write to - bytesRead
- Type: SystemInt32
Number of bytes copied to the stream - callback
- Type: CefSharpICallback
The callback used to Continue or Cancel the request (async).
Return Value
Type:
BooleanIf data is available immediately copy to dataOut, set bytesRead to the number of bytes copied,
and return true.To indicate response completion return false.
Remarks Depending on this size of your response this method may be called multiple times
See Also