Add custom actions for rendered requests & Fix not closing bug
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user