Add custom actions for rendered requests & Fix not closing bug

This commit is contained in:
Musab Gültekin
2022-04-29 03:05:31 +03:00
parent 34d17a2d3d
commit 738852f932
7 changed files with 824 additions and 87 deletions

View File

@ -1,6 +1,7 @@
package client
import (
"github.com/chromedp/chromedp"
"io"
"net/http"
)
@ -27,6 +28,9 @@ type Request struct {
// Set this true to cancel requests. Should be used on middlewares.
Cancelled bool
// Chrome actions to be run if the request is Rendered
Actions []chromedp.Action
retryCounter int
}