github.com/MontFerret/ferret@v0.18.0/pkg/drivers/cdp/network/options.go (about)

     1  package network
     2  
     3  import (
     4  	"regexp"
     5  
     6  	"github.com/mafredri/cdp/protocol/page"
     7  
     8  	"github.com/MontFerret/ferret/pkg/drivers"
     9  )
    10  
    11  type (
    12  	Cookies map[string]*drivers.HTTPCookies
    13  
    14  	Filter struct {
    15  		Patterns []drivers.ResourceFilter
    16  	}
    17  
    18  	Options struct {
    19  		Cookies Cookies
    20  		Headers *drivers.HTTPHeaders
    21  		Filter  *Filter
    22  	}
    23  
    24  	WaitEventOptions struct {
    25  		FrameID page.FrameID
    26  		URL     *regexp.Regexp
    27  	}
    28  )