func (c *Fetch) EnableWithParams(ctx context.Context, v *FetchEnableParams) (*gcdmessage.ChromeResponse, error) {
	return c.target.SendDefaultRequest(ctx, &gcdmessage.ParamRequest{Id: c.target.GetId(), Method: "Fetch.enable", Params: v})
}
EnableWithParams - Enables issuing of requestPaused events. A request will be paused until client calls one of failRequest, fulfillRequest or continueRequest/continueWithAuth.
package gcdapi
import (
	"context"
	"github.com/wirepair/gcd/v2/gcdmessage"
)
type FetchRequestPattern struct {
	UrlPattern   string `json:"urlPattern,omitempty"`    
	ResourceType string `json:"resourceType,omitempty"`  
	RequestStage string `json:"requestStage,omitempty"`  
}
type FetchHeaderEntry struct {
	Name  string `json:"name"`   
	Value string `json:"value"`  
}
type FetchAuthChallenge struct {
	Source string `json:"source,omitempty"`  
	Origin string `json:"origin"`            
	Scheme string `json:"scheme"`            
	Realm  string `json:"realm"`             
}
type FetchAuthChallengeResponse struct {
	Response string `json:"response"`            
	Username string `json:"username,omitempty"`  
	Password string `json:"password,omitempty"`  
}
type FetchRequestPausedEvent struct {
	Method string `json:"method"`
	Params struct {
		RequestId           string              `json:"requestId"`                      
		Request             *NetworkRequest     `json:"request"`                        
		FrameId             string              `json:"frameId"`                        
		ResourceType        string              `json:"resourceType"`                   
		ResponseErrorReason string              `json:"responseErrorReason,omitempty"`  
		ResponseStatusCode  int                 `json:"responseStatusCode,omitempty"`   
		ResponseHeaders     []*FetchHeaderEntry `json:"responseHeaders,omitempty"`      
		NetworkId           string              `json:"networkId,omitempty"`            
	} `json:"Params,omitempty"`
}
type FetchAuthRequiredEvent struct {
	Method string `json:"method"`
	Params struct {
		RequestId     string              `json:"requestId"`      
		Request       *NetworkRequest     `json:"request"`        
		FrameId       string              `json:"frameId"`        
		ResourceType  string              `json:"resourceType"`   
		AuthChallenge *FetchAuthChallenge `json:"authChallenge"`  
	} `json:"Params,omitempty"`
}
type Fetch struct {
	target gcdmessage.ChromeTargeter
}
func NewFetch(target gcdmessage.ChromeTargeter) *Fetch {
	c := &Fetch{target: target}
	return c
}
func (c *Fetch) Disable(ctx context.Context) (*gcdmessage.ChromeResponse, error) {
	return c.target.SendDefaultRequest(ctx, &gcdmessage.ParamRequest{Id: c.target.GetId(), Method: "Fetch.disable"})
}
type FetchEnableParams struct {
	Patterns []*FetchRequestPattern `json:"patterns,omitempty"`
	HandleAuthRequests bool `json:"handleAuthRequests,omitempty"`
}