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

@@ -82,6 +82,7 @@ func NewGeziyor(opt *Options) *Geziyor {
RemoteAllocatorURL: opt.BrowserEndpoint,
AllocatorOptions: chromedp.DefaultExecAllocatorOptions[:],
ProxyFunc: opt.ProxyFunc,
PreActions: opt.PreActions,
})
if opt.Cache != nil {
geziyor.Client.Transport = &cache.Transport{