Skip to content

IRequest

Namespace: PuppeteerSharp

public interface IRequest

Whenever the page sends a request, the following events are emitted by puppeteer’s page: Request emitted when the request is issued by the page. Response emitted when/if the response is received for the request. RequestFinished emitted when the response body is downloaded and the request is complete.

If request fails at some point, then instead of RequestFinished event (and possibly instead of Response event), the RequestFailed event is emitted.

If request gets a ‘redirect’ response, the request is successfully finished with the RequestFinished event, and a new request is issued to a redirected url.

Derived: BidiHttpRequest, CdpHttpRequest, Request<TResponse>

View source

Made with love by Dario Kondratiuk