Class UrlRequestJob
- Namespace
- DotNetBrowser.Net
- Assembly
- DotNetBrowser.dll
The URL request job for the intercepted URL request, which allows you to provide the response data for this URL request.
public sealed class UrlRequestJob : IAutoDisposable
- Inheritance
-
UrlRequestJob
- Implements
- Inherited Members
Properties
- IsClosed
Indicates if the request is handled and all the data is sent.
- IsDisposed
Indicates if the object is already disposed.
- UrlRequest
Gets the UrlRequest associated with this job.
Methods
- Complete()
Marks the request as completed. It can be used to indicate that all response data are already sent.
- Fail()
Marks the request as failed. It can be used to indicate that an error occurred during writing the response data.
- Write(byte[])
Appends a chunk of the response data. This method may be called multiple times to append several chunks.
Events
- Disposed
Occurs when the object has been disposed.