ResourceHandlerProcessRequestAsync Method |
Version 91.1.160
Begin processing the request. If you have the data in memory you can execute the callback
immediately and return true. For Async processing you would typically spawn a Task to perform processing,
then return true. When the processing is complete execute callback.Continue(); In your processing Task, simply set
the StatusCode, StatusText, MimeType, ResponseLength and Stream
Namespace:
CefSharp.Lagacy
Assembly:
CefSharp (in CefSharp.dll) Version: 91.1.160.0 (91.1.160.0)
Syntax protected virtual bool ProcessRequestAsync(
IRequest request,
ICallback callback
)
protected:
virtual bool ProcessRequestAsync(
IRequest^ request,
ICallback^ callback
)
Parameters
- request
- Type: CefSharpIRequest
The request object. - callback
- Type: CefSharpICallback
The callback used to Continue or Cancel the request (async).
Return Value
Type:
BooleanTo handle the request return true and call
Continue once the response header information is available
Continue can also be called from inside this method if
header information is available immediately).
To cancel the request return false.
See Also