id
int32
0
167k
repo
stringlengths
5
54
path
stringlengths
4
155
func_name
stringlengths
1
118
original_string
stringlengths
52
85.5k
language
stringclasses
1 value
code
stringlengths
52
85.5k
code_tokens
listlengths
21
1.41k
docstring
stringlengths
6
2.61k
docstring_tokens
listlengths
3
215
sha
stringlengths
40
40
url
stringlengths
85
252
19,000
mafredri/cdp
protocol/serviceworker/command.go
NewUnregisterArgs
func NewUnregisterArgs(scopeURL string) *UnregisterArgs { args := new(UnregisterArgs) args.ScopeURL = scopeURL return args }
go
func NewUnregisterArgs(scopeURL string) *UnregisterArgs { args := new(UnregisterArgs) args.ScopeURL = scopeURL return args }
[ "func", "NewUnregisterArgs", "(", "scopeURL", "string", ")", "*", "UnregisterArgs", "{", "args", ":=", "new", "(", "UnregisterArgs", ")", "\n", "args", ".", "ScopeURL", "=", "scopeURL", "\n", "return", "args", "\n", "}" ]
// NewUnregisterArgs initializes UnregisterArgs with the required arguments.
[ "NewUnregisterArgs", "initializes", "UnregisterArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/serviceworker/command.go#L105-L109
19,001
mafredri/cdp
protocol/serviceworker/command.go
NewUpdateRegistrationArgs
func NewUpdateRegistrationArgs(scopeURL string) *UpdateRegistrationArgs { args := new(UpdateRegistrationArgs) args.ScopeURL = scopeURL return args }
go
func NewUpdateRegistrationArgs(scopeURL string) *UpdateRegistrationArgs { args := new(UpdateRegistrationArgs) args.ScopeURL = scopeURL return args }
[ "func", "NewUpdateRegistrationArgs", "(", "scopeURL", "string", ")", "*", "UpdateRegistrationArgs", "{", "args", ":=", "new", "(", "UpdateRegistrationArgs", ")", "\n", "args", ".", "ScopeURL", "=", "scopeURL", "\n", "return", "args", "\n", "}" ]
// NewUpdateRegistrationArgs initializes UpdateRegistrationArgs with the required arguments.
[ "NewUpdateRegistrationArgs", "initializes", "UpdateRegistrationArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/serviceworker/command.go#L117-L121
19,002
mafredri/cdp
protocol/applicationcache/domain.go
GetApplicationCacheForFrame
func (d *domainClient) GetApplicationCacheForFrame(ctx context.Context, args *GetApplicationCacheForFrameArgs) (reply *GetApplicationCacheForFrameReply, err error) { reply = new(GetApplicationCacheForFrameReply) if args != nil { err = rpcc.Invoke(ctx, "ApplicationCache.getApplicationCacheForFrame", args, reply, d.c...
go
func (d *domainClient) GetApplicationCacheForFrame(ctx context.Context, args *GetApplicationCacheForFrameArgs) (reply *GetApplicationCacheForFrameReply, err error) { reply = new(GetApplicationCacheForFrameReply) if args != nil { err = rpcc.Invoke(ctx, "ApplicationCache.getApplicationCacheForFrame", args, reply, d.c...
[ "func", "(", "d", "*", "domainClient", ")", "GetApplicationCacheForFrame", "(", "ctx", "context", ".", "Context", ",", "args", "*", "GetApplicationCacheForFrameArgs", ")", "(", "reply", "*", "GetApplicationCacheForFrameReply", ",", "err", "error", ")", "{", "reply...
// GetApplicationCacheForFrame invokes the ApplicationCache method. Returns // relevant application cache data for the document in given frame.
[ "GetApplicationCacheForFrame", "invokes", "the", "ApplicationCache", "method", ".", "Returns", "relevant", "application", "cache", "data", "for", "the", "document", "in", "given", "frame", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/applicationcache/domain.go#L33-L44
19,003
mafredri/cdp
protocol/applicationcache/domain.go
GetManifestForFrame
func (d *domainClient) GetManifestForFrame(ctx context.Context, args *GetManifestForFrameArgs) (reply *GetManifestForFrameReply, err error) { reply = new(GetManifestForFrameReply) if args != nil { err = rpcc.Invoke(ctx, "ApplicationCache.getManifestForFrame", args, reply, d.conn) } else { err = rpcc.Invoke(ctx, ...
go
func (d *domainClient) GetManifestForFrame(ctx context.Context, args *GetManifestForFrameArgs) (reply *GetManifestForFrameReply, err error) { reply = new(GetManifestForFrameReply) if args != nil { err = rpcc.Invoke(ctx, "ApplicationCache.getManifestForFrame", args, reply, d.conn) } else { err = rpcc.Invoke(ctx, ...
[ "func", "(", "d", "*", "domainClient", ")", "GetManifestForFrame", "(", "ctx", "context", ".", "Context", ",", "args", "*", "GetManifestForFrameArgs", ")", "(", "reply", "*", "GetManifestForFrameReply", ",", "err", "error", ")", "{", "reply", "=", "new", "("...
// GetManifestForFrame invokes the ApplicationCache method. Returns manifest // URL for document in the given frame.
[ "GetManifestForFrame", "invokes", "the", "ApplicationCache", "method", ".", "Returns", "manifest", "URL", "for", "document", "in", "the", "given", "frame", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/applicationcache/domain.go#L60-L71
19,004
mafredri/cdp
protocol/indexeddb/command.go
NewClearObjectStoreArgs
func NewClearObjectStoreArgs(securityOrigin string, databaseName string, objectStoreName string) *ClearObjectStoreArgs { args := new(ClearObjectStoreArgs) args.SecurityOrigin = securityOrigin args.DatabaseName = databaseName args.ObjectStoreName = objectStoreName return args }
go
func NewClearObjectStoreArgs(securityOrigin string, databaseName string, objectStoreName string) *ClearObjectStoreArgs { args := new(ClearObjectStoreArgs) args.SecurityOrigin = securityOrigin args.DatabaseName = databaseName args.ObjectStoreName = objectStoreName return args }
[ "func", "NewClearObjectStoreArgs", "(", "securityOrigin", "string", ",", "databaseName", "string", ",", "objectStoreName", "string", ")", "*", "ClearObjectStoreArgs", "{", "args", ":=", "new", "(", "ClearObjectStoreArgs", ")", "\n", "args", ".", "SecurityOrigin", "=...
// NewClearObjectStoreArgs initializes ClearObjectStoreArgs with the required arguments.
[ "NewClearObjectStoreArgs", "initializes", "ClearObjectStoreArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/indexeddb/command.go#L13-L19
19,005
mafredri/cdp
protocol/indexeddb/command.go
NewDeleteDatabaseArgs
func NewDeleteDatabaseArgs(securityOrigin string, databaseName string) *DeleteDatabaseArgs { args := new(DeleteDatabaseArgs) args.SecurityOrigin = securityOrigin args.DatabaseName = databaseName return args }
go
func NewDeleteDatabaseArgs(securityOrigin string, databaseName string) *DeleteDatabaseArgs { args := new(DeleteDatabaseArgs) args.SecurityOrigin = securityOrigin args.DatabaseName = databaseName return args }
[ "func", "NewDeleteDatabaseArgs", "(", "securityOrigin", "string", ",", "databaseName", "string", ")", "*", "DeleteDatabaseArgs", "{", "args", ":=", "new", "(", "DeleteDatabaseArgs", ")", "\n", "args", ".", "SecurityOrigin", "=", "securityOrigin", "\n", "args", "."...
// NewDeleteDatabaseArgs initializes DeleteDatabaseArgs with the required arguments.
[ "NewDeleteDatabaseArgs", "initializes", "DeleteDatabaseArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/indexeddb/command.go#L28-L33
19,006
mafredri/cdp
protocol/indexeddb/command.go
NewDeleteObjectStoreEntriesArgs
func NewDeleteObjectStoreEntriesArgs(securityOrigin string, databaseName string, objectStoreName string, keyRange KeyRange) *DeleteObjectStoreEntriesArgs { args := new(DeleteObjectStoreEntriesArgs) args.SecurityOrigin = securityOrigin args.DatabaseName = databaseName args.ObjectStoreName = objectStoreName args.Key...
go
func NewDeleteObjectStoreEntriesArgs(securityOrigin string, databaseName string, objectStoreName string, keyRange KeyRange) *DeleteObjectStoreEntriesArgs { args := new(DeleteObjectStoreEntriesArgs) args.SecurityOrigin = securityOrigin args.DatabaseName = databaseName args.ObjectStoreName = objectStoreName args.Key...
[ "func", "NewDeleteObjectStoreEntriesArgs", "(", "securityOrigin", "string", ",", "databaseName", "string", ",", "objectStoreName", "string", ",", "keyRange", "KeyRange", ")", "*", "DeleteObjectStoreEntriesArgs", "{", "args", ":=", "new", "(", "DeleteObjectStoreEntriesArgs...
// NewDeleteObjectStoreEntriesArgs initializes DeleteObjectStoreEntriesArgs with the required arguments.
[ "NewDeleteObjectStoreEntriesArgs", "initializes", "DeleteObjectStoreEntriesArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/indexeddb/command.go#L44-L51
19,007
mafredri/cdp
protocol/indexeddb/command.go
NewRequestDataArgs
func NewRequestDataArgs(securityOrigin string, databaseName string, objectStoreName string, indexName string, skipCount int, pageSize int) *RequestDataArgs { args := new(RequestDataArgs) args.SecurityOrigin = securityOrigin args.DatabaseName = databaseName args.ObjectStoreName = objectStoreName args.IndexName = in...
go
func NewRequestDataArgs(securityOrigin string, databaseName string, objectStoreName string, indexName string, skipCount int, pageSize int) *RequestDataArgs { args := new(RequestDataArgs) args.SecurityOrigin = securityOrigin args.DatabaseName = databaseName args.ObjectStoreName = objectStoreName args.IndexName = in...
[ "func", "NewRequestDataArgs", "(", "securityOrigin", "string", ",", "databaseName", "string", ",", "objectStoreName", "string", ",", "indexName", "string", ",", "skipCount", "int", ",", "pageSize", "int", ")", "*", "RequestDataArgs", "{", "args", ":=", "new", "(...
// NewRequestDataArgs initializes RequestDataArgs with the required arguments.
[ "NewRequestDataArgs", "initializes", "RequestDataArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/indexeddb/command.go#L65-L74
19,008
mafredri/cdp
protocol/indexeddb/command.go
SetKeyRange
func (a *RequestDataArgs) SetKeyRange(keyRange KeyRange) *RequestDataArgs { a.KeyRange = &keyRange return a }
go
func (a *RequestDataArgs) SetKeyRange(keyRange KeyRange) *RequestDataArgs { a.KeyRange = &keyRange return a }
[ "func", "(", "a", "*", "RequestDataArgs", ")", "SetKeyRange", "(", "keyRange", "KeyRange", ")", "*", "RequestDataArgs", "{", "a", ".", "KeyRange", "=", "&", "keyRange", "\n", "return", "a", "\n", "}" ]
// SetKeyRange sets the KeyRange optional argument. Key range.
[ "SetKeyRange", "sets", "the", "KeyRange", "optional", "argument", ".", "Key", "range", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/indexeddb/command.go#L77-L80
19,009
mafredri/cdp
protocol/indexeddb/command.go
NewGetMetadataArgs
func NewGetMetadataArgs(securityOrigin string, databaseName string, objectStoreName string) *GetMetadataArgs { args := new(GetMetadataArgs) args.SecurityOrigin = securityOrigin args.DatabaseName = databaseName args.ObjectStoreName = objectStoreName return args }
go
func NewGetMetadataArgs(securityOrigin string, databaseName string, objectStoreName string) *GetMetadataArgs { args := new(GetMetadataArgs) args.SecurityOrigin = securityOrigin args.DatabaseName = databaseName args.ObjectStoreName = objectStoreName return args }
[ "func", "NewGetMetadataArgs", "(", "securityOrigin", "string", ",", "databaseName", "string", ",", "objectStoreName", "string", ")", "*", "GetMetadataArgs", "{", "args", ":=", "new", "(", "GetMetadataArgs", ")", "\n", "args", ".", "SecurityOrigin", "=", "securityO...
// NewGetMetadataArgs initializes GetMetadataArgs with the required arguments.
[ "NewGetMetadataArgs", "initializes", "GetMetadataArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/indexeddb/command.go#L96-L102
19,010
mafredri/cdp
protocol/indexeddb/command.go
NewRequestDatabaseArgs
func NewRequestDatabaseArgs(securityOrigin string, databaseName string) *RequestDatabaseArgs { args := new(RequestDatabaseArgs) args.SecurityOrigin = securityOrigin args.DatabaseName = databaseName return args }
go
func NewRequestDatabaseArgs(securityOrigin string, databaseName string) *RequestDatabaseArgs { args := new(RequestDatabaseArgs) args.SecurityOrigin = securityOrigin args.DatabaseName = databaseName return args }
[ "func", "NewRequestDatabaseArgs", "(", "securityOrigin", "string", ",", "databaseName", "string", ")", "*", "RequestDatabaseArgs", "{", "args", ":=", "new", "(", "RequestDatabaseArgs", ")", "\n", "args", ".", "SecurityOrigin", "=", "securityOrigin", "\n", "args", ...
// NewRequestDatabaseArgs initializes RequestDatabaseArgs with the required arguments.
[ "NewRequestDatabaseArgs", "initializes", "RequestDatabaseArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/indexeddb/command.go#L117-L122
19,011
mafredri/cdp
protocol/indexeddb/command.go
NewRequestDatabaseNamesArgs
func NewRequestDatabaseNamesArgs(securityOrigin string) *RequestDatabaseNamesArgs { args := new(RequestDatabaseNamesArgs) args.SecurityOrigin = securityOrigin return args }
go
func NewRequestDatabaseNamesArgs(securityOrigin string) *RequestDatabaseNamesArgs { args := new(RequestDatabaseNamesArgs) args.SecurityOrigin = securityOrigin return args }
[ "func", "NewRequestDatabaseNamesArgs", "(", "securityOrigin", "string", ")", "*", "RequestDatabaseNamesArgs", "{", "args", ":=", "new", "(", "RequestDatabaseNamesArgs", ")", "\n", "args", ".", "SecurityOrigin", "=", "securityOrigin", "\n", "return", "args", "\n", "}...
// NewRequestDatabaseNamesArgs initializes RequestDatabaseNamesArgs with the required arguments.
[ "NewRequestDatabaseNamesArgs", "initializes", "RequestDatabaseNamesArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/indexeddb/command.go#L135-L139
19,012
mafredri/cdp
protocol/io/command.go
NewCloseArgs
func NewCloseArgs(handle StreamHandle) *CloseArgs { args := new(CloseArgs) args.Handle = handle return args }
go
func NewCloseArgs(handle StreamHandle) *CloseArgs { args := new(CloseArgs) args.Handle = handle return args }
[ "func", "NewCloseArgs", "(", "handle", "StreamHandle", ")", "*", "CloseArgs", "{", "args", ":=", "new", "(", "CloseArgs", ")", "\n", "args", ".", "Handle", "=", "handle", "\n", "return", "args", "\n", "}" ]
// NewCloseArgs initializes CloseArgs with the required arguments.
[ "NewCloseArgs", "initializes", "CloseArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/io/command.go#L15-L19
19,013
mafredri/cdp
protocol/io/command.go
NewReadArgs
func NewReadArgs(handle StreamHandle) *ReadArgs { args := new(ReadArgs) args.Handle = handle return args }
go
func NewReadArgs(handle StreamHandle) *ReadArgs { args := new(ReadArgs) args.Handle = handle return args }
[ "func", "NewReadArgs", "(", "handle", "StreamHandle", ")", "*", "ReadArgs", "{", "args", ":=", "new", "(", "ReadArgs", ")", "\n", "args", ".", "Handle", "=", "handle", "\n", "return", "args", "\n", "}" ]
// NewReadArgs initializes ReadArgs with the required arguments.
[ "NewReadArgs", "initializes", "ReadArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/io/command.go#L29-L33
19,014
mafredri/cdp
protocol/io/command.go
NewResolveBlobArgs
func NewResolveBlobArgs(objectID runtime.RemoteObjectID) *ResolveBlobArgs { args := new(ResolveBlobArgs) args.ObjectID = objectID return args }
go
func NewResolveBlobArgs(objectID runtime.RemoteObjectID) *ResolveBlobArgs { args := new(ResolveBlobArgs) args.ObjectID = objectID return args }
[ "func", "NewResolveBlobArgs", "(", "objectID", "runtime", ".", "RemoteObjectID", ")", "*", "ResolveBlobArgs", "{", "args", ":=", "new", "(", "ResolveBlobArgs", ")", "\n", "args", ".", "ObjectID", "=", "objectID", "\n", "return", "args", "\n", "}" ]
// NewResolveBlobArgs initializes ResolveBlobArgs with the required arguments.
[ "NewResolveBlobArgs", "initializes", "ResolveBlobArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/io/command.go#L64-L68
19,015
mafredri/cdp
protocol/network/command.go
NewContinueInterceptedRequestArgs
func NewContinueInterceptedRequestArgs(interceptionID InterceptionID) *ContinueInterceptedRequestArgs { args := new(ContinueInterceptedRequestArgs) args.InterceptionID = interceptionID return args }
go
func NewContinueInterceptedRequestArgs(interceptionID InterceptionID) *ContinueInterceptedRequestArgs { args := new(ContinueInterceptedRequestArgs) args.InterceptionID = interceptionID return args }
[ "func", "NewContinueInterceptedRequestArgs", "(", "interceptionID", "InterceptionID", ")", "*", "ContinueInterceptedRequestArgs", "{", "args", ":=", "new", "(", "ContinueInterceptedRequestArgs", ")", "\n", "args", ".", "InterceptionID", "=", "interceptionID", "\n", "retur...
// NewContinueInterceptedRequestArgs initializes ContinueInterceptedRequestArgs with the required arguments.
[ "NewContinueInterceptedRequestArgs", "initializes", "ContinueInterceptedRequestArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L38-L42
19,016
mafredri/cdp
protocol/network/command.go
SetErrorReason
func (a *ContinueInterceptedRequestArgs) SetErrorReason(errorReason ErrorReason) *ContinueInterceptedRequestArgs { a.ErrorReason = errorReason return a }
go
func (a *ContinueInterceptedRequestArgs) SetErrorReason(errorReason ErrorReason) *ContinueInterceptedRequestArgs { a.ErrorReason = errorReason return a }
[ "func", "(", "a", "*", "ContinueInterceptedRequestArgs", ")", "SetErrorReason", "(", "errorReason", "ErrorReason", ")", "*", "ContinueInterceptedRequestArgs", "{", "a", ".", "ErrorReason", "=", "errorReason", "\n", "return", "a", "\n", "}" ]
// SetErrorReason sets the ErrorReason optional argument. If set this // causes the request to fail with the given reason. Passing `Aborted` // for requests marked with `isNavigationRequest` also cancels the // navigation. Must not be set in response to an authChallenge.
[ "SetErrorReason", "sets", "the", "ErrorReason", "optional", "argument", ".", "If", "set", "this", "causes", "the", "request", "to", "fail", "with", "the", "given", "reason", ".", "Passing", "Aborted", "for", "requests", "marked", "with", "isNavigationRequest", "...
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L48-L51
19,017
mafredri/cdp
protocol/network/command.go
SetRawResponse
func (a *ContinueInterceptedRequestArgs) SetRawResponse(rawResponse string) *ContinueInterceptedRequestArgs { a.RawResponse = &rawResponse return a }
go
func (a *ContinueInterceptedRequestArgs) SetRawResponse(rawResponse string) *ContinueInterceptedRequestArgs { a.RawResponse = &rawResponse return a }
[ "func", "(", "a", "*", "ContinueInterceptedRequestArgs", ")", "SetRawResponse", "(", "rawResponse", "string", ")", "*", "ContinueInterceptedRequestArgs", "{", "a", ".", "RawResponse", "=", "&", "rawResponse", "\n", "return", "a", "\n", "}" ]
// SetRawResponse sets the RawResponse optional argument. If set the // requests completes using with the provided base64 encoded raw // response, including HTTP status line and headers etc... Must not be // set in response to an authChallenge.
[ "SetRawResponse", "sets", "the", "RawResponse", "optional", "argument", ".", "If", "set", "the", "requests", "completes", "using", "with", "the", "provided", "base64", "encoded", "raw", "response", "including", "HTTP", "status", "line", "and", "headers", "etc", ...
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L57-L60
19,018
mafredri/cdp
protocol/network/command.go
SetURL
func (a *ContinueInterceptedRequestArgs) SetURL(url string) *ContinueInterceptedRequestArgs { a.URL = &url return a }
go
func (a *ContinueInterceptedRequestArgs) SetURL(url string) *ContinueInterceptedRequestArgs { a.URL = &url return a }
[ "func", "(", "a", "*", "ContinueInterceptedRequestArgs", ")", "SetURL", "(", "url", "string", ")", "*", "ContinueInterceptedRequestArgs", "{", "a", ".", "URL", "=", "&", "url", "\n", "return", "a", "\n", "}" ]
// SetURL sets the URL optional argument. If set the request url will // be modified in a way that's not observable by page. Must not be set // in response to an authChallenge.
[ "SetURL", "sets", "the", "URL", "optional", "argument", ".", "If", "set", "the", "request", "url", "will", "be", "modified", "in", "a", "way", "that", "s", "not", "observable", "by", "page", ".", "Must", "not", "be", "set", "in", "response", "to", "an"...
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L65-L68
19,019
mafredri/cdp
protocol/network/command.go
SetMethod
func (a *ContinueInterceptedRequestArgs) SetMethod(method string) *ContinueInterceptedRequestArgs { a.Method = &method return a }
go
func (a *ContinueInterceptedRequestArgs) SetMethod(method string) *ContinueInterceptedRequestArgs { a.Method = &method return a }
[ "func", "(", "a", "*", "ContinueInterceptedRequestArgs", ")", "SetMethod", "(", "method", "string", ")", "*", "ContinueInterceptedRequestArgs", "{", "a", ".", "Method", "=", "&", "method", "\n", "return", "a", "\n", "}" ]
// SetMethod sets the Method optional argument. If set this allows the // request method to be overridden. Must not be set in response to an // authChallenge.
[ "SetMethod", "sets", "the", "Method", "optional", "argument", ".", "If", "set", "this", "allows", "the", "request", "method", "to", "be", "overridden", ".", "Must", "not", "be", "set", "in", "response", "to", "an", "authChallenge", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L73-L76
19,020
mafredri/cdp
protocol/network/command.go
SetPostData
func (a *ContinueInterceptedRequestArgs) SetPostData(postData string) *ContinueInterceptedRequestArgs { a.PostData = &postData return a }
go
func (a *ContinueInterceptedRequestArgs) SetPostData(postData string) *ContinueInterceptedRequestArgs { a.PostData = &postData return a }
[ "func", "(", "a", "*", "ContinueInterceptedRequestArgs", ")", "SetPostData", "(", "postData", "string", ")", "*", "ContinueInterceptedRequestArgs", "{", "a", ".", "PostData", "=", "&", "postData", "\n", "return", "a", "\n", "}" ]
// SetPostData sets the PostData optional argument. If set this allows // postData to be set. Must not be set in response to an authChallenge.
[ "SetPostData", "sets", "the", "PostData", "optional", "argument", ".", "If", "set", "this", "allows", "postData", "to", "be", "set", ".", "Must", "not", "be", "set", "in", "response", "to", "an", "authChallenge", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L80-L83
19,021
mafredri/cdp
protocol/network/command.go
SetHeaders
func (a *ContinueInterceptedRequestArgs) SetHeaders(headers Headers) *ContinueInterceptedRequestArgs { a.Headers = headers return a }
go
func (a *ContinueInterceptedRequestArgs) SetHeaders(headers Headers) *ContinueInterceptedRequestArgs { a.Headers = headers return a }
[ "func", "(", "a", "*", "ContinueInterceptedRequestArgs", ")", "SetHeaders", "(", "headers", "Headers", ")", "*", "ContinueInterceptedRequestArgs", "{", "a", ".", "Headers", "=", "headers", "\n", "return", "a", "\n", "}" ]
// SetHeaders sets the Headers optional argument. If set this allows // the request headers to be changed. Must not be set in response to an // authChallenge.
[ "SetHeaders", "sets", "the", "Headers", "optional", "argument", ".", "If", "set", "this", "allows", "the", "request", "headers", "to", "be", "changed", ".", "Must", "not", "be", "set", "in", "response", "to", "an", "authChallenge", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L88-L91
19,022
mafredri/cdp
protocol/network/command.go
SetAuthChallengeResponse
func (a *ContinueInterceptedRequestArgs) SetAuthChallengeResponse(authChallengeResponse AuthChallengeResponse) *ContinueInterceptedRequestArgs { a.AuthChallengeResponse = &authChallengeResponse return a }
go
func (a *ContinueInterceptedRequestArgs) SetAuthChallengeResponse(authChallengeResponse AuthChallengeResponse) *ContinueInterceptedRequestArgs { a.AuthChallengeResponse = &authChallengeResponse return a }
[ "func", "(", "a", "*", "ContinueInterceptedRequestArgs", ")", "SetAuthChallengeResponse", "(", "authChallengeResponse", "AuthChallengeResponse", ")", "*", "ContinueInterceptedRequestArgs", "{", "a", ".", "AuthChallengeResponse", "=", "&", "authChallengeResponse", "\n", "ret...
// SetAuthChallengeResponse sets the AuthChallengeResponse optional argument. // Response to a requestIntercepted with an authChallenge. Must not be // set otherwise.
[ "SetAuthChallengeResponse", "sets", "the", "AuthChallengeResponse", "optional", "argument", ".", "Response", "to", "a", "requestIntercepted", "with", "an", "authChallenge", ".", "Must", "not", "be", "set", "otherwise", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L96-L99
19,023
mafredri/cdp
protocol/network/command.go
NewDeleteCookiesArgs
func NewDeleteCookiesArgs(name string) *DeleteCookiesArgs { args := new(DeleteCookiesArgs) args.Name = name return args }
go
func NewDeleteCookiesArgs(name string) *DeleteCookiesArgs { args := new(DeleteCookiesArgs) args.Name = name return args }
[ "func", "NewDeleteCookiesArgs", "(", "name", "string", ")", "*", "DeleteCookiesArgs", "{", "args", ":=", "new", "(", "DeleteCookiesArgs", ")", "\n", "args", ".", "Name", "=", "name", "\n", "return", "args", "\n", "}" ]
// NewDeleteCookiesArgs initializes DeleteCookiesArgs with the required arguments.
[ "NewDeleteCookiesArgs", "initializes", "DeleteCookiesArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L110-L114
19,024
mafredri/cdp
protocol/network/command.go
SetURL
func (a *DeleteCookiesArgs) SetURL(url string) *DeleteCookiesArgs { a.URL = &url return a }
go
func (a *DeleteCookiesArgs) SetURL(url string) *DeleteCookiesArgs { a.URL = &url return a }
[ "func", "(", "a", "*", "DeleteCookiesArgs", ")", "SetURL", "(", "url", "string", ")", "*", "DeleteCookiesArgs", "{", "a", ".", "URL", "=", "&", "url", "\n", "return", "a", "\n", "}" ]
// SetURL sets the URL optional argument. If specified, deletes all // the cookies with the given name where domain and path match provided // URL.
[ "SetURL", "sets", "the", "URL", "optional", "argument", ".", "If", "specified", "deletes", "all", "the", "cookies", "with", "the", "given", "name", "where", "domain", "and", "path", "match", "provided", "URL", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L119-L122
19,025
mafredri/cdp
protocol/network/command.go
SetDomain
func (a *DeleteCookiesArgs) SetDomain(domain string) *DeleteCookiesArgs { a.Domain = &domain return a }
go
func (a *DeleteCookiesArgs) SetDomain(domain string) *DeleteCookiesArgs { a.Domain = &domain return a }
[ "func", "(", "a", "*", "DeleteCookiesArgs", ")", "SetDomain", "(", "domain", "string", ")", "*", "DeleteCookiesArgs", "{", "a", ".", "Domain", "=", "&", "domain", "\n", "return", "a", "\n", "}" ]
// SetDomain sets the Domain optional argument. If specified, deletes // only cookies with the exact domain.
[ "SetDomain", "sets", "the", "Domain", "optional", "argument", ".", "If", "specified", "deletes", "only", "cookies", "with", "the", "exact", "domain", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L126-L129
19,026
mafredri/cdp
protocol/network/command.go
SetPath
func (a *DeleteCookiesArgs) SetPath(path string) *DeleteCookiesArgs { a.Path = &path return a }
go
func (a *DeleteCookiesArgs) SetPath(path string) *DeleteCookiesArgs { a.Path = &path return a }
[ "func", "(", "a", "*", "DeleteCookiesArgs", ")", "SetPath", "(", "path", "string", ")", "*", "DeleteCookiesArgs", "{", "a", ".", "Path", "=", "&", "path", "\n", "return", "a", "\n", "}" ]
// SetPath sets the Path optional argument. If specified, deletes only // cookies with the exact path.
[ "SetPath", "sets", "the", "Path", "optional", "argument", ".", "If", "specified", "deletes", "only", "cookies", "with", "the", "exact", "path", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L133-L136
19,027
mafredri/cdp
protocol/network/command.go
NewEmulateNetworkConditionsArgs
func NewEmulateNetworkConditionsArgs(offline bool, latency float64, downloadThroughput float64, uploadThroughput float64) *EmulateNetworkConditionsArgs { args := new(EmulateNetworkConditionsArgs) args.Offline = offline args.Latency = latency args.DownloadThroughput = downloadThroughput args.UploadThroughput = uplo...
go
func NewEmulateNetworkConditionsArgs(offline bool, latency float64, downloadThroughput float64, uploadThroughput float64) *EmulateNetworkConditionsArgs { args := new(EmulateNetworkConditionsArgs) args.Offline = offline args.Latency = latency args.DownloadThroughput = downloadThroughput args.UploadThroughput = uplo...
[ "func", "NewEmulateNetworkConditionsArgs", "(", "offline", "bool", ",", "latency", "float64", ",", "downloadThroughput", "float64", ",", "uploadThroughput", "float64", ")", "*", "EmulateNetworkConditionsArgs", "{", "args", ":=", "new", "(", "EmulateNetworkConditionsArgs",...
// NewEmulateNetworkConditionsArgs initializes EmulateNetworkConditionsArgs with the required arguments.
[ "NewEmulateNetworkConditionsArgs", "initializes", "EmulateNetworkConditionsArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L148-L155
19,028
mafredri/cdp
protocol/network/command.go
SetConnectionType
func (a *EmulateNetworkConditionsArgs) SetConnectionType(connectionType ConnectionType) *EmulateNetworkConditionsArgs { a.ConnectionType = connectionType return a }
go
func (a *EmulateNetworkConditionsArgs) SetConnectionType(connectionType ConnectionType) *EmulateNetworkConditionsArgs { a.ConnectionType = connectionType return a }
[ "func", "(", "a", "*", "EmulateNetworkConditionsArgs", ")", "SetConnectionType", "(", "connectionType", "ConnectionType", ")", "*", "EmulateNetworkConditionsArgs", "{", "a", ".", "ConnectionType", "=", "connectionType", "\n", "return", "a", "\n", "}" ]
// SetConnectionType sets the ConnectionType optional argument. // Connection type if known.
[ "SetConnectionType", "sets", "the", "ConnectionType", "optional", "argument", ".", "Connection", "type", "if", "known", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L159-L162
19,029
mafredri/cdp
protocol/network/command.go
NewGetCertificateArgs
func NewGetCertificateArgs(origin string) *GetCertificateArgs { args := new(GetCertificateArgs) args.Origin = origin return args }
go
func NewGetCertificateArgs(origin string) *GetCertificateArgs { args := new(GetCertificateArgs) args.Origin = origin return args }
[ "func", "NewGetCertificateArgs", "(", "origin", "string", ")", "*", "GetCertificateArgs", "{", "args", ":=", "new", "(", "GetCertificateArgs", ")", "\n", "args", ".", "Origin", "=", "origin", "\n", "return", "args", "\n", "}" ]
// NewGetCertificateArgs initializes GetCertificateArgs with the required arguments.
[ "NewGetCertificateArgs", "initializes", "GetCertificateArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L225-L229
19,030
mafredri/cdp
protocol/network/command.go
SetURLs
func (a *GetCookiesArgs) SetURLs(urls []string) *GetCookiesArgs { a.URLs = urls return a }
go
func (a *GetCookiesArgs) SetURLs(urls []string) *GetCookiesArgs { a.URLs = urls return a }
[ "func", "(", "a", "*", "GetCookiesArgs", ")", "SetURLs", "(", "urls", "[", "]", "string", ")", "*", "GetCookiesArgs", "{", "a", ".", "URLs", "=", "urls", "\n", "return", "a", "\n", "}" ]
// SetURLs sets the URLs optional argument. The list of URLs for which // applicable cookies will be fetched
[ "SetURLs", "sets", "the", "URLs", "optional", "argument", ".", "The", "list", "of", "URLs", "for", "which", "applicable", "cookies", "will", "be", "fetched" ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L250-L253
19,031
mafredri/cdp
protocol/network/command.go
NewGetResponseBodyArgs
func NewGetResponseBodyArgs(requestID RequestID) *GetResponseBodyArgs { args := new(GetResponseBodyArgs) args.RequestID = requestID return args }
go
func NewGetResponseBodyArgs(requestID RequestID) *GetResponseBodyArgs { args := new(GetResponseBodyArgs) args.RequestID = requestID return args }
[ "func", "NewGetResponseBodyArgs", "(", "requestID", "RequestID", ")", "*", "GetResponseBodyArgs", "{", "args", ":=", "new", "(", "GetResponseBodyArgs", ")", "\n", "args", ".", "RequestID", "=", "requestID", "\n", "return", "args", "\n", "}" ]
// NewGetResponseBodyArgs initializes GetResponseBodyArgs with the required arguments.
[ "NewGetResponseBodyArgs", "initializes", "GetResponseBodyArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L266-L270
19,032
mafredri/cdp
protocol/network/command.go
NewGetRequestPostDataArgs
func NewGetRequestPostDataArgs(requestID RequestID) *GetRequestPostDataArgs { args := new(GetRequestPostDataArgs) args.RequestID = requestID return args }
go
func NewGetRequestPostDataArgs(requestID RequestID) *GetRequestPostDataArgs { args := new(GetRequestPostDataArgs) args.RequestID = requestID return args }
[ "func", "NewGetRequestPostDataArgs", "(", "requestID", "RequestID", ")", "*", "GetRequestPostDataArgs", "{", "args", ":=", "new", "(", "GetRequestPostDataArgs", ")", "\n", "args", ".", "RequestID", "=", "requestID", "\n", "return", "args", "\n", "}" ]
// NewGetRequestPostDataArgs initializes GetRequestPostDataArgs with the required arguments.
[ "NewGetRequestPostDataArgs", "initializes", "GetRequestPostDataArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L284-L288
19,033
mafredri/cdp
protocol/network/command.go
NewGetResponseBodyForInterceptionArgs
func NewGetResponseBodyForInterceptionArgs(interceptionID InterceptionID) *GetResponseBodyForInterceptionArgs { args := new(GetResponseBodyForInterceptionArgs) args.InterceptionID = interceptionID return args }
go
func NewGetResponseBodyForInterceptionArgs(interceptionID InterceptionID) *GetResponseBodyForInterceptionArgs { args := new(GetResponseBodyForInterceptionArgs) args.InterceptionID = interceptionID return args }
[ "func", "NewGetResponseBodyForInterceptionArgs", "(", "interceptionID", "InterceptionID", ")", "*", "GetResponseBodyForInterceptionArgs", "{", "args", ":=", "new", "(", "GetResponseBodyForInterceptionArgs", ")", "\n", "args", ".", "InterceptionID", "=", "interceptionID", "\...
// NewGetResponseBodyForInterceptionArgs initializes GetResponseBodyForInterceptionArgs with the required arguments.
[ "NewGetResponseBodyForInterceptionArgs", "initializes", "GetResponseBodyForInterceptionArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L301-L305
19,034
mafredri/cdp
protocol/network/command.go
NewTakeResponseBodyForInterceptionAsStreamArgs
func NewTakeResponseBodyForInterceptionAsStreamArgs(interceptionID InterceptionID) *TakeResponseBodyForInterceptionAsStreamArgs { args := new(TakeResponseBodyForInterceptionAsStreamArgs) args.InterceptionID = interceptionID return args }
go
func NewTakeResponseBodyForInterceptionAsStreamArgs(interceptionID InterceptionID) *TakeResponseBodyForInterceptionAsStreamArgs { args := new(TakeResponseBodyForInterceptionAsStreamArgs) args.InterceptionID = interceptionID return args }
[ "func", "NewTakeResponseBodyForInterceptionAsStreamArgs", "(", "interceptionID", "InterceptionID", ")", "*", "TakeResponseBodyForInterceptionAsStreamArgs", "{", "args", ":=", "new", "(", "TakeResponseBodyForInterceptionAsStreamArgs", ")", "\n", "args", ".", "InterceptionID", "=...
// NewTakeResponseBodyForInterceptionAsStreamArgs initializes TakeResponseBodyForInterceptionAsStreamArgs with the required arguments.
[ "NewTakeResponseBodyForInterceptionAsStreamArgs", "initializes", "TakeResponseBodyForInterceptionAsStreamArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L319-L323
19,035
mafredri/cdp
protocol/network/command.go
NewReplayXHRArgs
func NewReplayXHRArgs(requestID RequestID) *ReplayXHRArgs { args := new(ReplayXHRArgs) args.RequestID = requestID return args }
go
func NewReplayXHRArgs(requestID RequestID) *ReplayXHRArgs { args := new(ReplayXHRArgs) args.RequestID = requestID return args }
[ "func", "NewReplayXHRArgs", "(", "requestID", "RequestID", ")", "*", "ReplayXHRArgs", "{", "args", ":=", "new", "(", "ReplayXHRArgs", ")", "\n", "args", ".", "RequestID", "=", "requestID", "\n", "return", "args", "\n", "}" ]
// NewReplayXHRArgs initializes ReplayXHRArgs with the required arguments.
[ "NewReplayXHRArgs", "initializes", "ReplayXHRArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L336-L340
19,036
mafredri/cdp
protocol/network/command.go
NewSearchInResponseBodyArgs
func NewSearchInResponseBodyArgs(requestID RequestID, query string) *SearchInResponseBodyArgs { args := new(SearchInResponseBodyArgs) args.RequestID = requestID args.Query = query return args }
go
func NewSearchInResponseBodyArgs(requestID RequestID, query string) *SearchInResponseBodyArgs { args := new(SearchInResponseBodyArgs) args.RequestID = requestID args.Query = query return args }
[ "func", "NewSearchInResponseBodyArgs", "(", "requestID", "RequestID", ",", "query", "string", ")", "*", "SearchInResponseBodyArgs", "{", "args", ":=", "new", "(", "SearchInResponseBodyArgs", ")", "\n", "args", ".", "RequestID", "=", "requestID", "\n", "args", ".",...
// NewSearchInResponseBodyArgs initializes SearchInResponseBodyArgs with the required arguments.
[ "NewSearchInResponseBodyArgs", "initializes", "SearchInResponseBodyArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L351-L356
19,037
mafredri/cdp
protocol/network/command.go
NewSetBlockedURLsArgs
func NewSetBlockedURLsArgs(urls []string) *SetBlockedURLsArgs { args := new(SetBlockedURLsArgs) args.URLs = urls return args }
go
func NewSetBlockedURLsArgs(urls []string) *SetBlockedURLsArgs { args := new(SetBlockedURLsArgs) args.URLs = urls return args }
[ "func", "NewSetBlockedURLsArgs", "(", "urls", "[", "]", "string", ")", "*", "SetBlockedURLsArgs", "{", "args", ":=", "new", "(", "SetBlockedURLsArgs", ")", "\n", "args", ".", "URLs", "=", "urls", "\n", "return", "args", "\n", "}" ]
// NewSetBlockedURLsArgs initializes SetBlockedURLsArgs with the required arguments.
[ "NewSetBlockedURLsArgs", "initializes", "SetBlockedURLsArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L383-L387
19,038
mafredri/cdp
protocol/network/command.go
NewSetBypassServiceWorkerArgs
func NewSetBypassServiceWorkerArgs(bypass bool) *SetBypassServiceWorkerArgs { args := new(SetBypassServiceWorkerArgs) args.Bypass = bypass return args }
go
func NewSetBypassServiceWorkerArgs(bypass bool) *SetBypassServiceWorkerArgs { args := new(SetBypassServiceWorkerArgs) args.Bypass = bypass return args }
[ "func", "NewSetBypassServiceWorkerArgs", "(", "bypass", "bool", ")", "*", "SetBypassServiceWorkerArgs", "{", "args", ":=", "new", "(", "SetBypassServiceWorkerArgs", ")", "\n", "args", ".", "Bypass", "=", "bypass", "\n", "return", "args", "\n", "}" ]
// NewSetBypassServiceWorkerArgs initializes SetBypassServiceWorkerArgs with the required arguments.
[ "NewSetBypassServiceWorkerArgs", "initializes", "SetBypassServiceWorkerArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L395-L399
19,039
mafredri/cdp
protocol/network/command.go
NewSetCacheDisabledArgs
func NewSetCacheDisabledArgs(cacheDisabled bool) *SetCacheDisabledArgs { args := new(SetCacheDisabledArgs) args.CacheDisabled = cacheDisabled return args }
go
func NewSetCacheDisabledArgs(cacheDisabled bool) *SetCacheDisabledArgs { args := new(SetCacheDisabledArgs) args.CacheDisabled = cacheDisabled return args }
[ "func", "NewSetCacheDisabledArgs", "(", "cacheDisabled", "bool", ")", "*", "SetCacheDisabledArgs", "{", "args", ":=", "new", "(", "SetCacheDisabledArgs", ")", "\n", "args", ".", "CacheDisabled", "=", "cacheDisabled", "\n", "return", "args", "\n", "}" ]
// NewSetCacheDisabledArgs initializes SetCacheDisabledArgs with the required arguments.
[ "NewSetCacheDisabledArgs", "initializes", "SetCacheDisabledArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L407-L411
19,040
mafredri/cdp
protocol/network/command.go
NewSetCookieArgs
func NewSetCookieArgs(name string, value string) *SetCookieArgs { args := new(SetCookieArgs) args.Name = name args.Value = value return args }
go
func NewSetCookieArgs(name string, value string) *SetCookieArgs { args := new(SetCookieArgs) args.Name = name args.Value = value return args }
[ "func", "NewSetCookieArgs", "(", "name", "string", ",", "value", "string", ")", "*", "SetCookieArgs", "{", "args", ":=", "new", "(", "SetCookieArgs", ")", "\n", "args", ".", "Name", "=", "name", "\n", "args", ".", "Value", "=", "value", "\n", "return", ...
// NewSetCookieArgs initializes SetCookieArgs with the required arguments.
[ "NewSetCookieArgs", "initializes", "SetCookieArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L427-L432
19,041
mafredri/cdp
protocol/network/command.go
SetURL
func (a *SetCookieArgs) SetURL(url string) *SetCookieArgs { a.URL = &url return a }
go
func (a *SetCookieArgs) SetURL(url string) *SetCookieArgs { a.URL = &url return a }
[ "func", "(", "a", "*", "SetCookieArgs", ")", "SetURL", "(", "url", "string", ")", "*", "SetCookieArgs", "{", "a", ".", "URL", "=", "&", "url", "\n", "return", "a", "\n", "}" ]
// SetURL sets the URL optional argument. The request-URI to associate // with the setting of the cookie. This value can affect the default // domain and path values of the created cookie.
[ "SetURL", "sets", "the", "URL", "optional", "argument", ".", "The", "request", "-", "URI", "to", "associate", "with", "the", "setting", "of", "the", "cookie", ".", "This", "value", "can", "affect", "the", "default", "domain", "and", "path", "values", "of",...
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L437-L440
19,042
mafredri/cdp
protocol/network/command.go
SetDomain
func (a *SetCookieArgs) SetDomain(domain string) *SetCookieArgs { a.Domain = &domain return a }
go
func (a *SetCookieArgs) SetDomain(domain string) *SetCookieArgs { a.Domain = &domain return a }
[ "func", "(", "a", "*", "SetCookieArgs", ")", "SetDomain", "(", "domain", "string", ")", "*", "SetCookieArgs", "{", "a", ".", "Domain", "=", "&", "domain", "\n", "return", "a", "\n", "}" ]
// SetDomain sets the Domain optional argument. Cookie domain.
[ "SetDomain", "sets", "the", "Domain", "optional", "argument", ".", "Cookie", "domain", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L443-L446
19,043
mafredri/cdp
protocol/network/command.go
SetPath
func (a *SetCookieArgs) SetPath(path string) *SetCookieArgs { a.Path = &path return a }
go
func (a *SetCookieArgs) SetPath(path string) *SetCookieArgs { a.Path = &path return a }
[ "func", "(", "a", "*", "SetCookieArgs", ")", "SetPath", "(", "path", "string", ")", "*", "SetCookieArgs", "{", "a", ".", "Path", "=", "&", "path", "\n", "return", "a", "\n", "}" ]
// SetPath sets the Path optional argument. Cookie path.
[ "SetPath", "sets", "the", "Path", "optional", "argument", ".", "Cookie", "path", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L449-L452
19,044
mafredri/cdp
protocol/network/command.go
SetSecure
func (a *SetCookieArgs) SetSecure(secure bool) *SetCookieArgs { a.Secure = &secure return a }
go
func (a *SetCookieArgs) SetSecure(secure bool) *SetCookieArgs { a.Secure = &secure return a }
[ "func", "(", "a", "*", "SetCookieArgs", ")", "SetSecure", "(", "secure", "bool", ")", "*", "SetCookieArgs", "{", "a", ".", "Secure", "=", "&", "secure", "\n", "return", "a", "\n", "}" ]
// SetSecure sets the Secure optional argument. True if cookie is // secure.
[ "SetSecure", "sets", "the", "Secure", "optional", "argument", ".", "True", "if", "cookie", "is", "secure", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L456-L459
19,045
mafredri/cdp
protocol/network/command.go
SetHTTPOnly
func (a *SetCookieArgs) SetHTTPOnly(httpOnly bool) *SetCookieArgs { a.HTTPOnly = &httpOnly return a }
go
func (a *SetCookieArgs) SetHTTPOnly(httpOnly bool) *SetCookieArgs { a.HTTPOnly = &httpOnly return a }
[ "func", "(", "a", "*", "SetCookieArgs", ")", "SetHTTPOnly", "(", "httpOnly", "bool", ")", "*", "SetCookieArgs", "{", "a", ".", "HTTPOnly", "=", "&", "httpOnly", "\n", "return", "a", "\n", "}" ]
// SetHTTPOnly sets the HTTPOnly optional argument. True if cookie is // http-only.
[ "SetHTTPOnly", "sets", "the", "HTTPOnly", "optional", "argument", ".", "True", "if", "cookie", "is", "http", "-", "only", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L463-L466
19,046
mafredri/cdp
protocol/network/command.go
SetSameSite
func (a *SetCookieArgs) SetSameSite(sameSite CookieSameSite) *SetCookieArgs { a.SameSite = sameSite return a }
go
func (a *SetCookieArgs) SetSameSite(sameSite CookieSameSite) *SetCookieArgs { a.SameSite = sameSite return a }
[ "func", "(", "a", "*", "SetCookieArgs", ")", "SetSameSite", "(", "sameSite", "CookieSameSite", ")", "*", "SetCookieArgs", "{", "a", ".", "SameSite", "=", "sameSite", "\n", "return", "a", "\n", "}" ]
// SetSameSite sets the SameSite optional argument. Cookie SameSite // type.
[ "SetSameSite", "sets", "the", "SameSite", "optional", "argument", ".", "Cookie", "SameSite", "type", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L470-L473
19,047
mafredri/cdp
protocol/network/command.go
SetExpires
func (a *SetCookieArgs) SetExpires(expires TimeSinceEpoch) *SetCookieArgs { a.Expires = expires return a }
go
func (a *SetCookieArgs) SetExpires(expires TimeSinceEpoch) *SetCookieArgs { a.Expires = expires return a }
[ "func", "(", "a", "*", "SetCookieArgs", ")", "SetExpires", "(", "expires", "TimeSinceEpoch", ")", "*", "SetCookieArgs", "{", "a", ".", "Expires", "=", "expires", "\n", "return", "a", "\n", "}" ]
// SetExpires sets the Expires optional argument. Cookie expiration // date, session cookie if not set
[ "SetExpires", "sets", "the", "Expires", "optional", "argument", ".", "Cookie", "expiration", "date", "session", "cookie", "if", "not", "set" ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L477-L480
19,048
mafredri/cdp
protocol/network/command.go
NewSetCookiesArgs
func NewSetCookiesArgs(cookies []CookieParam) *SetCookiesArgs { args := new(SetCookiesArgs) args.Cookies = cookies return args }
go
func NewSetCookiesArgs(cookies []CookieParam) *SetCookiesArgs { args := new(SetCookiesArgs) args.Cookies = cookies return args }
[ "func", "NewSetCookiesArgs", "(", "cookies", "[", "]", "CookieParam", ")", "*", "SetCookiesArgs", "{", "args", ":=", "new", "(", "SetCookiesArgs", ")", "\n", "args", ".", "Cookies", "=", "cookies", "\n", "return", "args", "\n", "}" ]
// NewSetCookiesArgs initializes SetCookiesArgs with the required arguments.
[ "NewSetCookiesArgs", "initializes", "SetCookiesArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L493-L497
19,049
mafredri/cdp
protocol/network/command.go
NewSetExtraHTTPHeadersArgs
func NewSetExtraHTTPHeadersArgs(headers Headers) *SetExtraHTTPHeadersArgs { args := new(SetExtraHTTPHeadersArgs) args.Headers = headers return args }
go
func NewSetExtraHTTPHeadersArgs(headers Headers) *SetExtraHTTPHeadersArgs { args := new(SetExtraHTTPHeadersArgs) args.Headers = headers return args }
[ "func", "NewSetExtraHTTPHeadersArgs", "(", "headers", "Headers", ")", "*", "SetExtraHTTPHeadersArgs", "{", "args", ":=", "new", "(", "SetExtraHTTPHeadersArgs", ")", "\n", "args", ".", "Headers", "=", "headers", "\n", "return", "args", "\n", "}" ]
// NewSetExtraHTTPHeadersArgs initializes SetExtraHTTPHeadersArgs with the required arguments.
[ "NewSetExtraHTTPHeadersArgs", "initializes", "SetExtraHTTPHeadersArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L519-L523
19,050
mafredri/cdp
protocol/network/command.go
NewSetRequestInterceptionArgs
func NewSetRequestInterceptionArgs(patterns []RequestPattern) *SetRequestInterceptionArgs { args := new(SetRequestInterceptionArgs) args.Patterns = patterns return args }
go
func NewSetRequestInterceptionArgs(patterns []RequestPattern) *SetRequestInterceptionArgs { args := new(SetRequestInterceptionArgs) args.Patterns = patterns return args }
[ "func", "NewSetRequestInterceptionArgs", "(", "patterns", "[", "]", "RequestPattern", ")", "*", "SetRequestInterceptionArgs", "{", "args", ":=", "new", "(", "SetRequestInterceptionArgs", ")", "\n", "args", ".", "Patterns", "=", "patterns", "\n", "return", "args", ...
// NewSetRequestInterceptionArgs initializes SetRequestInterceptionArgs with the required arguments.
[ "NewSetRequestInterceptionArgs", "initializes", "SetRequestInterceptionArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/command.go#L531-L535
19,051
mafredri/cdp
protocol/profiler/command.go
NewSetSamplingIntervalArgs
func NewSetSamplingIntervalArgs(interval int) *SetSamplingIntervalArgs { args := new(SetSamplingIntervalArgs) args.Interval = interval return args }
go
func NewSetSamplingIntervalArgs(interval int) *SetSamplingIntervalArgs { args := new(SetSamplingIntervalArgs) args.Interval = interval return args }
[ "func", "NewSetSamplingIntervalArgs", "(", "interval", "int", ")", "*", "SetSamplingIntervalArgs", "{", "args", ":=", "new", "(", "SetSamplingIntervalArgs", ")", "\n", "args", ".", "Interval", "=", "interval", "\n", "return", "args", "\n", "}" ]
// NewSetSamplingIntervalArgs initializes SetSamplingIntervalArgs with the required arguments.
[ "NewSetSamplingIntervalArgs", "initializes", "SetSamplingIntervalArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/profiler/command.go#L16-L20
19,052
mafredri/cdp
protocol/profiler/command.go
SetCallCount
func (a *StartPreciseCoverageArgs) SetCallCount(callCount bool) *StartPreciseCoverageArgs { a.CallCount = &callCount return a }
go
func (a *StartPreciseCoverageArgs) SetCallCount(callCount bool) *StartPreciseCoverageArgs { a.CallCount = &callCount return a }
[ "func", "(", "a", "*", "StartPreciseCoverageArgs", ")", "SetCallCount", "(", "callCount", "bool", ")", "*", "StartPreciseCoverageArgs", "{", "a", ".", "CallCount", "=", "&", "callCount", "\n", "return", "a", "\n", "}" ]
// SetCallCount sets the CallCount optional argument. Collect accurate // call counts beyond simple 'covered' or 'not covered'.
[ "SetCallCount", "sets", "the", "CallCount", "optional", "argument", ".", "Collect", "accurate", "call", "counts", "beyond", "simple", "covered", "or", "not", "covered", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/profiler/command.go#L37-L40
19,053
mafredri/cdp
protocol/profiler/command.go
SetDetailed
func (a *StartPreciseCoverageArgs) SetDetailed(detailed bool) *StartPreciseCoverageArgs { a.Detailed = &detailed return a }
go
func (a *StartPreciseCoverageArgs) SetDetailed(detailed bool) *StartPreciseCoverageArgs { a.Detailed = &detailed return a }
[ "func", "(", "a", "*", "StartPreciseCoverageArgs", ")", "SetDetailed", "(", "detailed", "bool", ")", "*", "StartPreciseCoverageArgs", "{", "a", ".", "Detailed", "=", "&", "detailed", "\n", "return", "a", "\n", "}" ]
// SetDetailed sets the Detailed optional argument. Collect // block-based coverage.
[ "SetDetailed", "sets", "the", "Detailed", "optional", "argument", ".", "Collect", "block", "-", "based", "coverage", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/profiler/command.go#L44-L47
19,054
mafredri/cdp
cmd/cdpgen/lint/name.go
Name
func Name(name string) (should string) { should = lint.Name(name) for _, replace := range []struct { re *regexp.Regexp to string }{ {re: reIDs, to: "IDs"}, {re: reURLs, to: "URLs"}, {re: reIDRef, to: "IDRef"}, } { should = replace.re.ReplaceAllString(should, fmt.Sprintf("${1}%s${2}", replace.to)) } ...
go
func Name(name string) (should string) { should = lint.Name(name) for _, replace := range []struct { re *regexp.Regexp to string }{ {re: reIDs, to: "IDs"}, {re: reURLs, to: "URLs"}, {re: reIDRef, to: "IDRef"}, } { should = replace.re.ReplaceAllString(should, fmt.Sprintf("${1}%s${2}", replace.to)) } ...
[ "func", "Name", "(", "name", "string", ")", "(", "should", "string", ")", "{", "should", "=", "lint", ".", "Name", "(", "name", ")", "\n\n", "for", "_", ",", "replace", ":=", "range", "[", "]", "struct", "{", "re", "*", "regexp", ".", "Regexp", "...
// Name returns a different name if it should be different.
[ "Name", "returns", "a", "different", "name", "if", "it", "should", "be", "different", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/cmd/cdpgen/lint/name.go#L24-L39
19,055
mafredri/cdp
protocol/backgroundservice/command.go
NewStartObservingArgs
func NewStartObservingArgs(service ServiceName) *StartObservingArgs { args := new(StartObservingArgs) args.Service = service return args }
go
func NewStartObservingArgs(service ServiceName) *StartObservingArgs { args := new(StartObservingArgs) args.Service = service return args }
[ "func", "NewStartObservingArgs", "(", "service", "ServiceName", ")", "*", "StartObservingArgs", "{", "args", ":=", "new", "(", "StartObservingArgs", ")", "\n", "args", ".", "Service", "=", "service", "\n", "return", "args", "\n", "}" ]
// NewStartObservingArgs initializes StartObservingArgs with the required arguments.
[ "NewStartObservingArgs", "initializes", "StartObservingArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/backgroundservice/command.go#L11-L15
19,056
mafredri/cdp
protocol/backgroundservice/command.go
NewStopObservingArgs
func NewStopObservingArgs(service ServiceName) *StopObservingArgs { args := new(StopObservingArgs) args.Service = service return args }
go
func NewStopObservingArgs(service ServiceName) *StopObservingArgs { args := new(StopObservingArgs) args.Service = service return args }
[ "func", "NewStopObservingArgs", "(", "service", "ServiceName", ")", "*", "StopObservingArgs", "{", "args", ":=", "new", "(", "StopObservingArgs", ")", "\n", "args", ".", "Service", "=", "service", "\n", "return", "args", "\n", "}" ]
// NewStopObservingArgs initializes StopObservingArgs with the required arguments.
[ "NewStopObservingArgs", "initializes", "StopObservingArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/backgroundservice/command.go#L23-L27
19,057
mafredri/cdp
protocol/backgroundservice/command.go
NewSetRecordingArgs
func NewSetRecordingArgs(shouldRecord bool, service ServiceName) *SetRecordingArgs { args := new(SetRecordingArgs) args.ShouldRecord = shouldRecord args.Service = service return args }
go
func NewSetRecordingArgs(shouldRecord bool, service ServiceName) *SetRecordingArgs { args := new(SetRecordingArgs) args.ShouldRecord = shouldRecord args.Service = service return args }
[ "func", "NewSetRecordingArgs", "(", "shouldRecord", "bool", ",", "service", "ServiceName", ")", "*", "SetRecordingArgs", "{", "args", ":=", "new", "(", "SetRecordingArgs", ")", "\n", "args", ".", "ShouldRecord", "=", "shouldRecord", "\n", "args", ".", "Service",...
// NewSetRecordingArgs initializes SetRecordingArgs with the required arguments.
[ "NewSetRecordingArgs", "initializes", "SetRecordingArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/backgroundservice/command.go#L36-L41
19,058
mafredri/cdp
protocol/backgroundservice/command.go
NewClearEventsArgs
func NewClearEventsArgs(service ServiceName) *ClearEventsArgs { args := new(ClearEventsArgs) args.Service = service return args }
go
func NewClearEventsArgs(service ServiceName) *ClearEventsArgs { args := new(ClearEventsArgs) args.Service = service return args }
[ "func", "NewClearEventsArgs", "(", "service", "ServiceName", ")", "*", "ClearEventsArgs", "{", "args", ":=", "new", "(", "ClearEventsArgs", ")", "\n", "args", ".", "Service", "=", "service", "\n", "return", "args", "\n", "}" ]
// NewClearEventsArgs initializes ClearEventsArgs with the required arguments.
[ "NewClearEventsArgs", "initializes", "ClearEventsArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/backgroundservice/command.go#L49-L53
19,059
mafredri/cdp
rpcc/conn.go
WithCodec
func WithCodec(f func(conn io.ReadWriter) Codec) DialOption { return func(o *dialOptions) { o.codec = f } }
go
func WithCodec(f func(conn io.ReadWriter) Codec) DialOption { return func(o *dialOptions) { o.codec = f } }
[ "func", "WithCodec", "(", "f", "func", "(", "conn", "io", ".", "ReadWriter", ")", "Codec", ")", "DialOption", "{", "return", "func", "(", "o", "*", "dialOptions", ")", "{", "o", ".", "codec", "=", "f", "\n", "}", "\n", "}" ]
// WithCodec returns a DialOption that sets the codec responsible for // encoding and decoding requests and responses onto the connection. // This option overrides the default json codec.
[ "WithCodec", "returns", "a", "DialOption", "that", "sets", "the", "codec", "responsible", "for", "encoding", "and", "decoding", "requests", "and", "responses", "onto", "the", "connection", ".", "This", "option", "overrides", "the", "default", "json", "codec", "....
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/rpcc/conn.go#L33-L37
19,060
mafredri/cdp
rpcc/conn.go
WithTLSClientConfig
func WithTLSClientConfig(c *tls.Config) DialOption { return func(o *dialOptions) { o.wsDialer.TLSClientConfig = c } }
go
func WithTLSClientConfig(c *tls.Config) DialOption { return func(o *dialOptions) { o.wsDialer.TLSClientConfig = c } }
[ "func", "WithTLSClientConfig", "(", "c", "*", "tls", ".", "Config", ")", "DialOption", "{", "return", "func", "(", "o", "*", "dialOptions", ")", "{", "o", ".", "wsDialer", ".", "TLSClientConfig", "=", "c", "\n", "}", "\n", "}" ]
// WithTLSClientConfig specifies the TLS configuration to use with tls.Client.
[ "WithTLSClientConfig", "specifies", "the", "TLS", "configuration", "to", "use", "with", "tls", ".", "Client", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/rpcc/conn.go#L74-L78
19,061
mafredri/cdp
rpcc/conn.go
DialContext
func DialContext(ctx context.Context, target string, opts ...DialOption) (conn *Conn, err error) { if ctx == nil { panic("nil Context") } c := &Conn{ pending: make(map[uint64]*rpcCall), streams: make(map[string]*streamClients), } c.ctx, c.cancel = context.WithCancel(context.Background()) defer func() { ...
go
func DialContext(ctx context.Context, target string, opts ...DialOption) (conn *Conn, err error) { if ctx == nil { panic("nil Context") } c := &Conn{ pending: make(map[uint64]*rpcCall), streams: make(map[string]*streamClients), } c.ctx, c.cancel = context.WithCancel(context.Background()) defer func() { ...
[ "func", "DialContext", "(", "ctx", "context", ".", "Context", ",", "target", "string", ",", "opts", "...", "DialOption", ")", "(", "conn", "*", "Conn", ",", "err", "error", ")", "{", "if", "ctx", "==", "nil", "{", "panic", "(", "\"", "\"", ")", "\n...
// DialContext is like Dial, with a caller provided Context. // A nil Context will panic.
[ "DialContext", "is", "like", "Dial", "with", "a", "caller", "provided", "Context", ".", "A", "nil", "Context", "will", "panic", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/rpcc/conn.go#L95-L185
19,062
mafredri/cdp
rpcc/conn.go
recv
func (c *Conn) recv(notify func(string, []byte), done func(error)) { var resp Response var err error for { resp.reset() if err = c.codec.ReadResponse(&resp); err != nil { done(err) return } // Check if this is an RPC notification from the server. if resp.Method != "" { // Method represents the ev...
go
func (c *Conn) recv(notify func(string, []byte), done func(error)) { var resp Response var err error for { resp.reset() if err = c.codec.ReadResponse(&resp); err != nil { done(err) return } // Check if this is an RPC notification from the server. if resp.Method != "" { // Method represents the ev...
[ "func", "(", "c", "*", "Conn", ")", "recv", "(", "notify", "func", "(", "string", ",", "[", "]", "byte", ")", ",", "done", "func", "(", "error", ")", ")", "{", "var", "resp", "Response", "\n", "var", "err", "error", "\n", "for", "{", "resp", "....
// recv decodes and handles RPC responses. Responses to RPC requests // are forwarded to the pending call, if any. RPC Notifications are // forwarded by calling notify, synchronously.
[ "recv", "decodes", "and", "handles", "RPC", "responses", ".", "Responses", "to", "RPC", "requests", "are", "forwarded", "to", "the", "pending", "call", "if", "any", ".", "RPC", "Notifications", "are", "forwarded", "by", "calling", "notify", "synchronously", "....
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/rpcc/conn.go#L314-L357
19,063
mafredri/cdp
rpcc/conn.go
send
func (c *Conn) send(ctx context.Context, call *rpcCall) (err error) { defer func() { // Give precedence for user cancellation. select { case <-ctx.Done(): err = ctx.Err() default: } }() c.mu.Lock() if c.closed { c.mu.Unlock() return ErrConnClosing } c.reqSeq++ reqID := c.reqSeq c.pending[reqID...
go
func (c *Conn) send(ctx context.Context, call *rpcCall) (err error) { defer func() { // Give precedence for user cancellation. select { case <-ctx.Done(): err = ctx.Err() default: } }() c.mu.Lock() if c.closed { c.mu.Unlock() return ErrConnClosing } c.reqSeq++ reqID := c.reqSeq c.pending[reqID...
[ "func", "(", "c", "*", "Conn", ")", "send", "(", "ctx", "context", ".", "Context", ",", "call", "*", "rpcCall", ")", "(", "err", "error", ")", "{", "defer", "func", "(", ")", "{", "// Give precedence for user cancellation.", "select", "{", "case", "<-", ...
// send returns after the call has successfully been dispatched over // the RPC connection.
[ "send", "returns", "after", "the", "call", "has", "successfully", "been", "dispatched", "over", "the", "RPC", "connection", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/rpcc/conn.go#L368-L419
19,064
mafredri/cdp
rpcc/conn.go
notify
func (c *Conn) notify(method string, data []byte) { c.streamMu.Lock() stream := c.streams[method] c.streamMu.Unlock() if stream != nil { // Stream writer must be able to handle incoming writes // even after it has been removed (unsubscribed). stream.write(method, data) } }
go
func (c *Conn) notify(method string, data []byte) { c.streamMu.Lock() stream := c.streams[method] c.streamMu.Unlock() if stream != nil { // Stream writer must be able to handle incoming writes // even after it has been removed (unsubscribed). stream.write(method, data) } }
[ "func", "(", "c", "*", "Conn", ")", "notify", "(", "method", "string", ",", "data", "[", "]", "byte", ")", "{", "c", ".", "streamMu", ".", "Lock", "(", ")", "\n", "stream", ":=", "c", ".", "streams", "[", "method", "]", "\n", "c", ".", "streamM...
// notify handles RPC notifications and sends them // to the appropriate stream listeners.
[ "notify", "handles", "RPC", "notifications", "and", "sends", "them", "to", "the", "appropriate", "stream", "listeners", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/rpcc/conn.go#L423-L433
19,065
mafredri/cdp
protocol/security/command.go
NewSetIgnoreCertificateErrorsArgs
func NewSetIgnoreCertificateErrorsArgs(ignore bool) *SetIgnoreCertificateErrorsArgs { args := new(SetIgnoreCertificateErrorsArgs) args.Ignore = ignore return args }
go
func NewSetIgnoreCertificateErrorsArgs(ignore bool) *SetIgnoreCertificateErrorsArgs { args := new(SetIgnoreCertificateErrorsArgs) args.Ignore = ignore return args }
[ "func", "NewSetIgnoreCertificateErrorsArgs", "(", "ignore", "bool", ")", "*", "SetIgnoreCertificateErrorsArgs", "{", "args", ":=", "new", "(", "SetIgnoreCertificateErrorsArgs", ")", "\n", "args", ".", "Ignore", "=", "ignore", "\n", "return", "args", "\n", "}" ]
// NewSetIgnoreCertificateErrorsArgs initializes SetIgnoreCertificateErrorsArgs with the required arguments.
[ "NewSetIgnoreCertificateErrorsArgs", "initializes", "SetIgnoreCertificateErrorsArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/security/command.go#L11-L15
19,066
mafredri/cdp
protocol/security/command.go
NewHandleCertificateErrorArgs
func NewHandleCertificateErrorArgs(eventID int, action CertificateErrorAction) *HandleCertificateErrorArgs { args := new(HandleCertificateErrorArgs) args.EventID = eventID args.Action = action return args }
go
func NewHandleCertificateErrorArgs(eventID int, action CertificateErrorAction) *HandleCertificateErrorArgs { args := new(HandleCertificateErrorArgs) args.EventID = eventID args.Action = action return args }
[ "func", "NewHandleCertificateErrorArgs", "(", "eventID", "int", ",", "action", "CertificateErrorAction", ")", "*", "HandleCertificateErrorArgs", "{", "args", ":=", "new", "(", "HandleCertificateErrorArgs", ")", "\n", "args", ".", "EventID", "=", "eventID", "\n", "ar...
// NewHandleCertificateErrorArgs initializes HandleCertificateErrorArgs with the required arguments.
[ "NewHandleCertificateErrorArgs", "initializes", "HandleCertificateErrorArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/security/command.go#L24-L29
19,067
mafredri/cdp
protocol/security/command.go
NewSetOverrideCertificateErrorsArgs
func NewSetOverrideCertificateErrorsArgs(override bool) *SetOverrideCertificateErrorsArgs { args := new(SetOverrideCertificateErrorsArgs) args.Override = override return args }
go
func NewSetOverrideCertificateErrorsArgs(override bool) *SetOverrideCertificateErrorsArgs { args := new(SetOverrideCertificateErrorsArgs) args.Override = override return args }
[ "func", "NewSetOverrideCertificateErrorsArgs", "(", "override", "bool", ")", "*", "SetOverrideCertificateErrorsArgs", "{", "args", ":=", "new", "(", "SetOverrideCertificateErrorsArgs", ")", "\n", "args", ".", "Override", "=", "override", "\n", "return", "args", "\n", ...
// NewSetOverrideCertificateErrorsArgs initializes SetOverrideCertificateErrorsArgs with the required arguments.
[ "NewSetOverrideCertificateErrorsArgs", "initializes", "SetOverrideCertificateErrorsArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/security/command.go#L37-L41
19,068
mafredri/cdp
protocol/animation/domain.go
GetCurrentTime
func (d *domainClient) GetCurrentTime(ctx context.Context, args *GetCurrentTimeArgs) (reply *GetCurrentTimeReply, err error) { reply = new(GetCurrentTimeReply) if args != nil { err = rpcc.Invoke(ctx, "Animation.getCurrentTime", args, reply, d.conn) } else { err = rpcc.Invoke(ctx, "Animation.getCurrentTime", nil,...
go
func (d *domainClient) GetCurrentTime(ctx context.Context, args *GetCurrentTimeArgs) (reply *GetCurrentTimeReply, err error) { reply = new(GetCurrentTimeReply) if args != nil { err = rpcc.Invoke(ctx, "Animation.getCurrentTime", args, reply, d.conn) } else { err = rpcc.Invoke(ctx, "Animation.getCurrentTime", nil,...
[ "func", "(", "d", "*", "domainClient", ")", "GetCurrentTime", "(", "ctx", "context", ".", "Context", ",", "args", "*", "GetCurrentTimeArgs", ")", "(", "reply", "*", "GetCurrentTimeReply", ",", "err", "error", ")", "{", "reply", "=", "new", "(", "GetCurrent...
// GetCurrentTime invokes the Animation method. Returns the current time of // the an animation.
[ "GetCurrentTime", "invokes", "the", "Animation", "method", ".", "Returns", "the", "current", "time", "of", "the", "an", "animation", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/animation/domain.go#L43-L54
19,069
mafredri/cdp
protocol/animation/domain.go
ResolveAnimation
func (d *domainClient) ResolveAnimation(ctx context.Context, args *ResolveAnimationArgs) (reply *ResolveAnimationReply, err error) { reply = new(ResolveAnimationReply) if args != nil { err = rpcc.Invoke(ctx, "Animation.resolveAnimation", args, reply, d.conn) } else { err = rpcc.Invoke(ctx, "Animation.resolveAnim...
go
func (d *domainClient) ResolveAnimation(ctx context.Context, args *ResolveAnimationArgs) (reply *ResolveAnimationReply, err error) { reply = new(ResolveAnimationReply) if args != nil { err = rpcc.Invoke(ctx, "Animation.resolveAnimation", args, reply, d.conn) } else { err = rpcc.Invoke(ctx, "Animation.resolveAnim...
[ "func", "(", "d", "*", "domainClient", ")", "ResolveAnimation", "(", "ctx", "context", ".", "Context", ",", "args", "*", "ResolveAnimationArgs", ")", "(", "reply", "*", "ResolveAnimationReply", ",", "err", "error", ")", "{", "reply", "=", "new", "(", "Reso...
// ResolveAnimation invokes the Animation method. Gets the remote object of // the Animation.
[ "ResolveAnimation", "invokes", "the", "Animation", "method", ".", "Gets", "the", "remote", "object", "of", "the", "Animation", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/animation/domain.go#L83-L94
19,070
mafredri/cdp
protocol/runtime/command.go
NewAwaitPromiseArgs
func NewAwaitPromiseArgs(promiseObjectID RemoteObjectID) *AwaitPromiseArgs { args := new(AwaitPromiseArgs) args.PromiseObjectID = promiseObjectID return args }
go
func NewAwaitPromiseArgs(promiseObjectID RemoteObjectID) *AwaitPromiseArgs { args := new(AwaitPromiseArgs) args.PromiseObjectID = promiseObjectID return args }
[ "func", "NewAwaitPromiseArgs", "(", "promiseObjectID", "RemoteObjectID", ")", "*", "AwaitPromiseArgs", "{", "args", ":=", "new", "(", "AwaitPromiseArgs", ")", "\n", "args", ".", "PromiseObjectID", "=", "promiseObjectID", "\n", "return", "args", "\n", "}" ]
// NewAwaitPromiseArgs initializes AwaitPromiseArgs with the required arguments.
[ "NewAwaitPromiseArgs", "initializes", "AwaitPromiseArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/runtime/command.go#L13-L17
19,071
mafredri/cdp
protocol/runtime/command.go
NewCallFunctionOnArgs
func NewCallFunctionOnArgs(functionDeclaration string) *CallFunctionOnArgs { args := new(CallFunctionOnArgs) args.FunctionDeclaration = functionDeclaration return args }
go
func NewCallFunctionOnArgs(functionDeclaration string) *CallFunctionOnArgs { args := new(CallFunctionOnArgs) args.FunctionDeclaration = functionDeclaration return args }
[ "func", "NewCallFunctionOnArgs", "(", "functionDeclaration", "string", ")", "*", "CallFunctionOnArgs", "{", "args", ":=", "new", "(", "CallFunctionOnArgs", ")", "\n", "args", ".", "FunctionDeclaration", "=", "functionDeclaration", "\n", "return", "args", "\n", "}" ]
// NewCallFunctionOnArgs initializes CallFunctionOnArgs with the required arguments.
[ "NewCallFunctionOnArgs", "initializes", "CallFunctionOnArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/runtime/command.go#L58-L62
19,072
mafredri/cdp
protocol/runtime/command.go
SetObjectID
func (a *CallFunctionOnArgs) SetObjectID(objectID RemoteObjectID) *CallFunctionOnArgs { a.ObjectID = &objectID return a }
go
func (a *CallFunctionOnArgs) SetObjectID(objectID RemoteObjectID) *CallFunctionOnArgs { a.ObjectID = &objectID return a }
[ "func", "(", "a", "*", "CallFunctionOnArgs", ")", "SetObjectID", "(", "objectID", "RemoteObjectID", ")", "*", "CallFunctionOnArgs", "{", "a", ".", "ObjectID", "=", "&", "objectID", "\n", "return", "a", "\n", "}" ]
// SetObjectID sets the ObjectID optional argument. Identifier of the // object to call function on. Either objectId or executionContextId // should be specified.
[ "SetObjectID", "sets", "the", "ObjectID", "optional", "argument", ".", "Identifier", "of", "the", "object", "to", "call", "function", "on", ".", "Either", "objectId", "or", "executionContextId", "should", "be", "specified", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/runtime/command.go#L67-L70
19,073
mafredri/cdp
protocol/runtime/command.go
SetArguments
func (a *CallFunctionOnArgs) SetArguments(arguments []CallArgument) *CallFunctionOnArgs { a.Arguments = arguments return a }
go
func (a *CallFunctionOnArgs) SetArguments(arguments []CallArgument) *CallFunctionOnArgs { a.Arguments = arguments return a }
[ "func", "(", "a", "*", "CallFunctionOnArgs", ")", "SetArguments", "(", "arguments", "[", "]", "CallArgument", ")", "*", "CallFunctionOnArgs", "{", "a", ".", "Arguments", "=", "arguments", "\n", "return", "a", "\n", "}" ]
// SetArguments sets the Arguments optional argument. Call arguments. // All call arguments must belong to the same JavaScript world as the // target object.
[ "SetArguments", "sets", "the", "Arguments", "optional", "argument", ".", "Call", "arguments", ".", "All", "call", "arguments", "must", "belong", "to", "the", "same", "JavaScript", "world", "as", "the", "target", "object", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/runtime/command.go#L75-L78
19,074
mafredri/cdp
protocol/runtime/command.go
SetExecutionContextID
func (a *CallFunctionOnArgs) SetExecutionContextID(executionContextID ExecutionContextID) *CallFunctionOnArgs { a.ExecutionContextID = &executionContextID return a }
go
func (a *CallFunctionOnArgs) SetExecutionContextID(executionContextID ExecutionContextID) *CallFunctionOnArgs { a.ExecutionContextID = &executionContextID return a }
[ "func", "(", "a", "*", "CallFunctionOnArgs", ")", "SetExecutionContextID", "(", "executionContextID", "ExecutionContextID", ")", "*", "CallFunctionOnArgs", "{", "a", ".", "ExecutionContextID", "=", "&", "executionContextID", "\n", "return", "a", "\n", "}" ]
// SetExecutionContextID sets the ExecutionContextID optional argument. // Specifies execution context which global object will be used to call // function on. Either executionContextId or objectId should be // specified.
[ "SetExecutionContextID", "sets", "the", "ExecutionContextID", "optional", "argument", ".", "Specifies", "execution", "context", "which", "global", "object", "will", "be", "used", "to", "call", "function", "on", ".", "Either", "executionContextId", "or", "objectId", ...
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/runtime/command.go#L124-L127
19,075
mafredri/cdp
protocol/runtime/command.go
SetObjectGroup
func (a *CallFunctionOnArgs) SetObjectGroup(objectGroup string) *CallFunctionOnArgs { a.ObjectGroup = &objectGroup return a }
go
func (a *CallFunctionOnArgs) SetObjectGroup(objectGroup string) *CallFunctionOnArgs { a.ObjectGroup = &objectGroup return a }
[ "func", "(", "a", "*", "CallFunctionOnArgs", ")", "SetObjectGroup", "(", "objectGroup", "string", ")", "*", "CallFunctionOnArgs", "{", "a", ".", "ObjectGroup", "=", "&", "objectGroup", "\n", "return", "a", "\n", "}" ]
// SetObjectGroup sets the ObjectGroup optional argument. Symbolic // group name that can be used to release multiple objects. If // objectGroup is not specified and objectId is, objectGroup will be // inherited from object.
[ "SetObjectGroup", "sets", "the", "ObjectGroup", "optional", "argument", ".", "Symbolic", "group", "name", "that", "can", "be", "used", "to", "release", "multiple", "objects", ".", "If", "objectGroup", "is", "not", "specified", "and", "objectId", "is", "objectGro...
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/runtime/command.go#L133-L136
19,076
mafredri/cdp
protocol/runtime/command.go
NewCompileScriptArgs
func NewCompileScriptArgs(expression string, sourceURL string, persistScript bool) *CompileScriptArgs { args := new(CompileScriptArgs) args.Expression = expression args.SourceURL = sourceURL args.PersistScript = persistScript return args }
go
func NewCompileScriptArgs(expression string, sourceURL string, persistScript bool) *CompileScriptArgs { args := new(CompileScriptArgs) args.Expression = expression args.SourceURL = sourceURL args.PersistScript = persistScript return args }
[ "func", "NewCompileScriptArgs", "(", "expression", "string", ",", "sourceURL", "string", ",", "persistScript", "bool", ")", "*", "CompileScriptArgs", "{", "args", ":=", "new", "(", "CompileScriptArgs", ")", "\n", "args", ".", "Expression", "=", "expression", "\n...
// NewCompileScriptArgs initializes CompileScriptArgs with the required arguments.
[ "NewCompileScriptArgs", "initializes", "CompileScriptArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/runtime/command.go#L153-L159
19,077
mafredri/cdp
protocol/runtime/command.go
NewEvaluateArgs
func NewEvaluateArgs(expression string) *EvaluateArgs { args := new(EvaluateArgs) args.Expression = expression return args }
go
func NewEvaluateArgs(expression string) *EvaluateArgs { args := new(EvaluateArgs) args.Expression = expression return args }
[ "func", "NewEvaluateArgs", "(", "expression", "string", ")", "*", "EvaluateArgs", "{", "args", ":=", "new", "(", "EvaluateArgs", ")", "\n", "args", ".", "Expression", "=", "expression", "\n", "return", "args", "\n", "}" ]
// NewEvaluateArgs initializes EvaluateArgs with the required arguments.
[ "NewEvaluateArgs", "initializes", "EvaluateArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/runtime/command.go#L203-L207
19,078
mafredri/cdp
protocol/runtime/command.go
SetContextID
func (a *EvaluateArgs) SetContextID(contextID ExecutionContextID) *EvaluateArgs { a.ContextID = &contextID return a }
go
func (a *EvaluateArgs) SetContextID(contextID ExecutionContextID) *EvaluateArgs { a.ContextID = &contextID return a }
[ "func", "(", "a", "*", "EvaluateArgs", ")", "SetContextID", "(", "contextID", "ExecutionContextID", ")", "*", "EvaluateArgs", "{", "a", ".", "ContextID", "=", "&", "contextID", "\n", "return", "a", "\n", "}" ]
// SetContextID sets the ContextID optional argument. Specifies in // which execution context to perform evaluation. If the parameter is // omitted the evaluation will be performed in the context of the // inspected page.
[ "SetContextID", "sets", "the", "ContextID", "optional", "argument", ".", "Specifies", "in", "which", "execution", "context", "to", "perform", "evaluation", ".", "If", "the", "parameter", "is", "omitted", "the", "evaluation", "will", "be", "performed", "in", "the...
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/runtime/command.go#L236-L239
19,079
mafredri/cdp
protocol/runtime/command.go
NewGetPropertiesArgs
func NewGetPropertiesArgs(objectID RemoteObjectID) *GetPropertiesArgs { args := new(GetPropertiesArgs) args.ObjectID = objectID return args }
go
func NewGetPropertiesArgs(objectID RemoteObjectID) *GetPropertiesArgs { args := new(GetPropertiesArgs) args.ObjectID = objectID return args }
[ "func", "NewGetPropertiesArgs", "(", "objectID", "RemoteObjectID", ")", "*", "GetPropertiesArgs", "{", "args", ":=", "new", "(", "GetPropertiesArgs", ")", "\n", "args", ".", "ObjectID", "=", "objectID", "\n", "return", "args", "\n", "}" ]
// NewGetPropertiesArgs initializes GetPropertiesArgs with the required arguments.
[ "NewGetPropertiesArgs", "initializes", "GetPropertiesArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/runtime/command.go#L326-L330
19,080
mafredri/cdp
protocol/runtime/command.go
SetOwnProperties
func (a *GetPropertiesArgs) SetOwnProperties(ownProperties bool) *GetPropertiesArgs { a.OwnProperties = &ownProperties return a }
go
func (a *GetPropertiesArgs) SetOwnProperties(ownProperties bool) *GetPropertiesArgs { a.OwnProperties = &ownProperties return a }
[ "func", "(", "a", "*", "GetPropertiesArgs", ")", "SetOwnProperties", "(", "ownProperties", "bool", ")", "*", "GetPropertiesArgs", "{", "a", ".", "OwnProperties", "=", "&", "ownProperties", "\n", "return", "a", "\n", "}" ]
// SetOwnProperties sets the OwnProperties optional argument. If true, // returns properties belonging only to the element itself, not to its // prototype chain.
[ "SetOwnProperties", "sets", "the", "OwnProperties", "optional", "argument", ".", "If", "true", "returns", "properties", "belonging", "only", "to", "the", "element", "itself", "not", "to", "its", "prototype", "chain", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/runtime/command.go#L335-L338
19,081
mafredri/cdp
protocol/runtime/command.go
SetExecutionContextID
func (a *GlobalLexicalScopeNamesArgs) SetExecutionContextID(executionContextID ExecutionContextID) *GlobalLexicalScopeNamesArgs { a.ExecutionContextID = &executionContextID return a }
go
func (a *GlobalLexicalScopeNamesArgs) SetExecutionContextID(executionContextID ExecutionContextID) *GlobalLexicalScopeNamesArgs { a.ExecutionContextID = &executionContextID return a }
[ "func", "(", "a", "*", "GlobalLexicalScopeNamesArgs", ")", "SetExecutionContextID", "(", "executionContextID", "ExecutionContextID", ")", "*", "GlobalLexicalScopeNamesArgs", "{", "a", ".", "ExecutionContextID", "=", "&", "executionContextID", "\n", "return", "a", "\n", ...
// SetExecutionContextID sets the ExecutionContextID optional argument. // Specifies in which execution context to lookup global scope // variables.
[ "SetExecutionContextID", "sets", "the", "ExecutionContextID", "optional", "argument", ".", "Specifies", "in", "which", "execution", "context", "to", "lookup", "global", "scope", "variables", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/runtime/command.go#L385-L388
19,082
mafredri/cdp
protocol/runtime/command.go
NewQueryObjectsArgs
func NewQueryObjectsArgs(prototypeObjectID RemoteObjectID) *QueryObjectsArgs { args := new(QueryObjectsArgs) args.PrototypeObjectID = prototypeObjectID return args }
go
func NewQueryObjectsArgs(prototypeObjectID RemoteObjectID) *QueryObjectsArgs { args := new(QueryObjectsArgs) args.PrototypeObjectID = prototypeObjectID return args }
[ "func", "NewQueryObjectsArgs", "(", "prototypeObjectID", "RemoteObjectID", ")", "*", "QueryObjectsArgs", "{", "args", ":=", "new", "(", "QueryObjectsArgs", ")", "\n", "args", ".", "PrototypeObjectID", "=", "prototypeObjectID", "\n", "return", "args", "\n", "}" ]
// NewQueryObjectsArgs initializes QueryObjectsArgs with the required arguments.
[ "NewQueryObjectsArgs", "initializes", "QueryObjectsArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/runtime/command.go#L402-L406
19,083
mafredri/cdp
protocol/runtime/command.go
SetObjectGroup
func (a *QueryObjectsArgs) SetObjectGroup(objectGroup string) *QueryObjectsArgs { a.ObjectGroup = &objectGroup return a }
go
func (a *QueryObjectsArgs) SetObjectGroup(objectGroup string) *QueryObjectsArgs { a.ObjectGroup = &objectGroup return a }
[ "func", "(", "a", "*", "QueryObjectsArgs", ")", "SetObjectGroup", "(", "objectGroup", "string", ")", "*", "QueryObjectsArgs", "{", "a", ".", "ObjectGroup", "=", "&", "objectGroup", "\n", "return", "a", "\n", "}" ]
// SetObjectGroup sets the ObjectGroup optional argument. Symbolic // group name that can be used to release the results.
[ "SetObjectGroup", "sets", "the", "ObjectGroup", "optional", "argument", ".", "Symbolic", "group", "name", "that", "can", "be", "used", "to", "release", "the", "results", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/runtime/command.go#L410-L413
19,084
mafredri/cdp
protocol/runtime/command.go
NewReleaseObjectArgs
func NewReleaseObjectArgs(objectID RemoteObjectID) *ReleaseObjectArgs { args := new(ReleaseObjectArgs) args.ObjectID = objectID return args }
go
func NewReleaseObjectArgs(objectID RemoteObjectID) *ReleaseObjectArgs { args := new(ReleaseObjectArgs) args.ObjectID = objectID return args }
[ "func", "NewReleaseObjectArgs", "(", "objectID", "RemoteObjectID", ")", "*", "ReleaseObjectArgs", "{", "args", ":=", "new", "(", "ReleaseObjectArgs", ")", "\n", "args", ".", "ObjectID", "=", "objectID", "\n", "return", "args", "\n", "}" ]
// NewReleaseObjectArgs initializes ReleaseObjectArgs with the required arguments.
[ "NewReleaseObjectArgs", "initializes", "ReleaseObjectArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/runtime/command.go#L426-L430
19,085
mafredri/cdp
protocol/runtime/command.go
NewReleaseObjectGroupArgs
func NewReleaseObjectGroupArgs(objectGroup string) *ReleaseObjectGroupArgs { args := new(ReleaseObjectGroupArgs) args.ObjectGroup = objectGroup return args }
go
func NewReleaseObjectGroupArgs(objectGroup string) *ReleaseObjectGroupArgs { args := new(ReleaseObjectGroupArgs) args.ObjectGroup = objectGroup return args }
[ "func", "NewReleaseObjectGroupArgs", "(", "objectGroup", "string", ")", "*", "ReleaseObjectGroupArgs", "{", "args", ":=", "new", "(", "ReleaseObjectGroupArgs", ")", "\n", "args", ".", "ObjectGroup", "=", "objectGroup", "\n", "return", "args", "\n", "}" ]
// NewReleaseObjectGroupArgs initializes ReleaseObjectGroupArgs with the required arguments.
[ "NewReleaseObjectGroupArgs", "initializes", "ReleaseObjectGroupArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/runtime/command.go#L438-L442
19,086
mafredri/cdp
protocol/runtime/command.go
NewRunScriptArgs
func NewRunScriptArgs(scriptID ScriptID) *RunScriptArgs { args := new(RunScriptArgs) args.ScriptID = scriptID return args }
go
func NewRunScriptArgs(scriptID ScriptID) *RunScriptArgs { args := new(RunScriptArgs) args.ScriptID = scriptID return args }
[ "func", "NewRunScriptArgs", "(", "scriptID", "ScriptID", ")", "*", "RunScriptArgs", "{", "args", ":=", "new", "(", "RunScriptArgs", ")", "\n", "args", ".", "ScriptID", "=", "scriptID", "\n", "return", "args", "\n", "}" ]
// NewRunScriptArgs initializes RunScriptArgs with the required arguments.
[ "NewRunScriptArgs", "initializes", "RunScriptArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/runtime/command.go#L457-L461
19,087
mafredri/cdp
protocol/runtime/command.go
NewSetCustomObjectFormatterEnabledArgs
func NewSetCustomObjectFormatterEnabledArgs(enabled bool) *SetCustomObjectFormatterEnabledArgs { args := new(SetCustomObjectFormatterEnabledArgs) args.Enabled = enabled return args }
go
func NewSetCustomObjectFormatterEnabledArgs(enabled bool) *SetCustomObjectFormatterEnabledArgs { args := new(SetCustomObjectFormatterEnabledArgs) args.Enabled = enabled return args }
[ "func", "NewSetCustomObjectFormatterEnabledArgs", "(", "enabled", "bool", ")", "*", "SetCustomObjectFormatterEnabledArgs", "{", "args", ":=", "new", "(", "SetCustomObjectFormatterEnabledArgs", ")", "\n", "args", ".", "Enabled", "=", "enabled", "\n", "return", "args", ...
// NewSetCustomObjectFormatterEnabledArgs initializes SetCustomObjectFormatterEnabledArgs with the required arguments.
[ "NewSetCustomObjectFormatterEnabledArgs", "initializes", "SetCustomObjectFormatterEnabledArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/runtime/command.go#L530-L534
19,088
mafredri/cdp
protocol/runtime/command.go
NewSetMaxCallStackSizeToCaptureArgs
func NewSetMaxCallStackSizeToCaptureArgs(size int) *SetMaxCallStackSizeToCaptureArgs { args := new(SetMaxCallStackSizeToCaptureArgs) args.Size = size return args }
go
func NewSetMaxCallStackSizeToCaptureArgs(size int) *SetMaxCallStackSizeToCaptureArgs { args := new(SetMaxCallStackSizeToCaptureArgs) args.Size = size return args }
[ "func", "NewSetMaxCallStackSizeToCaptureArgs", "(", "size", "int", ")", "*", "SetMaxCallStackSizeToCaptureArgs", "{", "args", ":=", "new", "(", "SetMaxCallStackSizeToCaptureArgs", ")", "\n", "args", ".", "Size", "=", "size", "\n", "return", "args", "\n", "}" ]
// NewSetMaxCallStackSizeToCaptureArgs initializes SetMaxCallStackSizeToCaptureArgs with the required arguments.
[ "NewSetMaxCallStackSizeToCaptureArgs", "initializes", "SetMaxCallStackSizeToCaptureArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/runtime/command.go#L542-L546
19,089
mafredri/cdp
protocol/runtime/command.go
NewAddBindingArgs
func NewAddBindingArgs(name string) *AddBindingArgs { args := new(AddBindingArgs) args.Name = name return args }
go
func NewAddBindingArgs(name string) *AddBindingArgs { args := new(AddBindingArgs) args.Name = name return args }
[ "func", "NewAddBindingArgs", "(", "name", "string", ")", "*", "AddBindingArgs", "{", "args", ":=", "new", "(", "AddBindingArgs", ")", "\n", "args", ".", "Name", "=", "name", "\n", "return", "args", "\n", "}" ]
// NewAddBindingArgs initializes AddBindingArgs with the required arguments.
[ "NewAddBindingArgs", "initializes", "AddBindingArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/runtime/command.go#L555-L559
19,090
mafredri/cdp
protocol/runtime/command.go
SetExecutionContextID
func (a *AddBindingArgs) SetExecutionContextID(executionContextID ExecutionContextID) *AddBindingArgs { a.ExecutionContextID = &executionContextID return a }
go
func (a *AddBindingArgs) SetExecutionContextID(executionContextID ExecutionContextID) *AddBindingArgs { a.ExecutionContextID = &executionContextID return a }
[ "func", "(", "a", "*", "AddBindingArgs", ")", "SetExecutionContextID", "(", "executionContextID", "ExecutionContextID", ")", "*", "AddBindingArgs", "{", "a", ".", "ExecutionContextID", "=", "&", "executionContextID", "\n", "return", "a", "\n", "}" ]
// SetExecutionContextID sets the ExecutionContextID optional argument.
[ "SetExecutionContextID", "sets", "the", "ExecutionContextID", "optional", "argument", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/runtime/command.go#L562-L565
19,091
mafredri/cdp
protocol/runtime/command.go
NewRemoveBindingArgs
func NewRemoveBindingArgs(name string) *RemoveBindingArgs { args := new(RemoveBindingArgs) args.Name = name return args }
go
func NewRemoveBindingArgs(name string) *RemoveBindingArgs { args := new(RemoveBindingArgs) args.Name = name return args }
[ "func", "NewRemoveBindingArgs", "(", "name", "string", ")", "*", "RemoveBindingArgs", "{", "args", ":=", "new", "(", "RemoveBindingArgs", ")", "\n", "args", ".", "Name", "=", "name", "\n", "return", "args", "\n", "}" ]
// NewRemoveBindingArgs initializes RemoveBindingArgs with the required arguments.
[ "NewRemoveBindingArgs", "initializes", "RemoveBindingArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/runtime/command.go#L573-L577
19,092
mafredri/cdp
protocol/log/command.go
NewStartViolationsReportArgs
func NewStartViolationsReportArgs(config []ViolationSetting) *StartViolationsReportArgs { args := new(StartViolationsReportArgs) args.Config = config return args }
go
func NewStartViolationsReportArgs(config []ViolationSetting) *StartViolationsReportArgs { args := new(StartViolationsReportArgs) args.Config = config return args }
[ "func", "NewStartViolationsReportArgs", "(", "config", "[", "]", "ViolationSetting", ")", "*", "StartViolationsReportArgs", "{", "args", ":=", "new", "(", "StartViolationsReportArgs", ")", "\n", "args", ".", "Config", "=", "config", "\n", "return", "args", "\n", ...
// NewStartViolationsReportArgs initializes StartViolationsReportArgs with the required arguments.
[ "NewStartViolationsReportArgs", "initializes", "StartViolationsReportArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/log/command.go#L11-L15
19,093
mafredri/cdp
protocol/domstorage/domain.go
GetDOMStorageItems
func (d *domainClient) GetDOMStorageItems(ctx context.Context, args *GetDOMStorageItemsArgs) (reply *GetDOMStorageItemsReply, err error) { reply = new(GetDOMStorageItemsReply) if args != nil { err = rpcc.Invoke(ctx, "DOMStorage.getDOMStorageItems", args, reply, d.conn) } else { err = rpcc.Invoke(ctx, "DOMStorage...
go
func (d *domainClient) GetDOMStorageItems(ctx context.Context, args *GetDOMStorageItemsArgs) (reply *GetDOMStorageItemsReply, err error) { reply = new(GetDOMStorageItemsReply) if args != nil { err = rpcc.Invoke(ctx, "DOMStorage.getDOMStorageItems", args, reply, d.conn) } else { err = rpcc.Invoke(ctx, "DOMStorage...
[ "func", "(", "d", "*", "domainClient", ")", "GetDOMStorageItems", "(", "ctx", "context", ".", "Context", ",", "args", "*", "GetDOMStorageItemsArgs", ")", "(", "reply", "*", "GetDOMStorageItemsReply", ",", "err", "error", ")", "{", "reply", "=", "new", "(", ...
// GetDOMStorageItems invokes the DOMStorage method.
[ "GetDOMStorageItems", "invokes", "the", "DOMStorage", "method", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/domstorage/domain.go#L57-L68
19,094
mafredri/cdp
protocol/network/util.go
Map
func (n Headers) Map() (map[string]string, error) { m := make(map[string]string) err := json.Unmarshal(n, &m) return m, err }
go
func (n Headers) Map() (map[string]string, error) { m := make(map[string]string) err := json.Unmarshal(n, &m) return m, err }
[ "func", "(", "n", "Headers", ")", "Map", "(", ")", "(", "map", "[", "string", "]", "string", ",", "error", ")", "{", "m", ":=", "make", "(", "map", "[", "string", "]", "string", ")", "\n", "err", ":=", "json", ".", "Unmarshal", "(", "n", ",", ...
// Map returns the headers decoded into a map.
[ "Map", "returns", "the", "headers", "decoded", "into", "a", "map", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/util.go#L8-L12
19,095
mafredri/cdp
session/session.go
WriteRequest
func (s *session) WriteRequest(r *rpcc.Request) error { data, err := json.Marshal(r) if err != nil { return err } return s.send(data) }
go
func (s *session) WriteRequest(r *rpcc.Request) error { data, err := json.Marshal(r) if err != nil { return err } return s.send(data) }
[ "func", "(", "s", "*", "session", ")", "WriteRequest", "(", "r", "*", "rpcc", ".", "Request", ")", "error", "{", "data", ",", "err", ":=", "json", ".", "Marshal", "(", "r", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err", "\n", "}", "...
// WriteRequest implements rpcc.Codec.
[ "WriteRequest", "implements", "rpcc", ".", "Codec", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/session/session.go#L31-L37
19,096
mafredri/cdp
session/session.go
ReadResponse
func (s *session) ReadResponse(r *rpcc.Response) error { <-s.init select { case m := <-s.recvC: return json.Unmarshal(m, r) case <-s.conn.Context().Done(): return s.conn.Context().Err() } }
go
func (s *session) ReadResponse(r *rpcc.Response) error { <-s.init select { case m := <-s.recvC: return json.Unmarshal(m, r) case <-s.conn.Context().Done(): return s.conn.Context().Err() } }
[ "func", "(", "s", "*", "session", ")", "ReadResponse", "(", "r", "*", "rpcc", ".", "Response", ")", "error", "{", "<-", "s", ".", "init", "\n\n", "select", "{", "case", "m", ":=", "<-", "s", ".", "recvC", ":", "return", "json", ".", "Unmarshal", ...
// ReadResponse implements rpcc.Codec.
[ "ReadResponse", "implements", "rpcc", ".", "Codec", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/session/session.go#L40-L49
19,097
mafredri/cdp
session/session.go
Write
func (s *session) Write(data []byte) error { select { case s.recvC <- data: return nil case <-s.conn.Context().Done(): return s.conn.Context().Err() } }
go
func (s *session) Write(data []byte) error { select { case s.recvC <- data: return nil case <-s.conn.Context().Done(): return s.conn.Context().Err() } }
[ "func", "(", "s", "*", "session", ")", "Write", "(", "data", "[", "]", "byte", ")", "error", "{", "select", "{", "case", "s", ".", "recvC", "<-", "data", ":", "return", "nil", "\n", "case", "<-", "s", ".", "conn", ".", "Context", "(", ")", ".",...
// Write forwards a target message to the session connection. // When write returns an error, the session is closed.
[ "Write", "forwards", "a", "target", "message", "to", "the", "session", "connection", ".", "When", "write", "returns", "an", "error", "the", "session", "is", "closed", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/session/session.go#L56-L63
19,098
mafredri/cdp
protocol/headlessexperimental/command.go
SetNoDisplayUpdates
func (a *BeginFrameArgs) SetNoDisplayUpdates(noDisplayUpdates bool) *BeginFrameArgs { a.NoDisplayUpdates = &noDisplayUpdates return a }
go
func (a *BeginFrameArgs) SetNoDisplayUpdates(noDisplayUpdates bool) *BeginFrameArgs { a.NoDisplayUpdates = &noDisplayUpdates return a }
[ "func", "(", "a", "*", "BeginFrameArgs", ")", "SetNoDisplayUpdates", "(", "noDisplayUpdates", "bool", ")", "*", "BeginFrameArgs", "{", "a", ".", "NoDisplayUpdates", "=", "&", "noDisplayUpdates", "\n", "return", "a", "\n", "}" ]
// SetNoDisplayUpdates sets the NoDisplayUpdates optional argument. // Whether updates should not be committed and drawn onto the display. // False by default. If true, only side effects of the BeginFrame will // be run, such as layout and animations, but any visual updates may // not be visible on the display or in sc...
[ "SetNoDisplayUpdates", "sets", "the", "NoDisplayUpdates", "optional", "argument", ".", "Whether", "updates", "should", "not", "be", "committed", "and", "drawn", "onto", "the", "display", ".", "False", "by", "default", ".", "If", "true", "only", "side", "effects"...
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/headlessexperimental/command.go#L42-L45
19,099
mafredri/cdp
protocol/headlessexperimental/command.go
SetScreenshot
func (a *BeginFrameArgs) SetScreenshot(screenshot ScreenshotParams) *BeginFrameArgs { a.Screenshot = &screenshot return a }
go
func (a *BeginFrameArgs) SetScreenshot(screenshot ScreenshotParams) *BeginFrameArgs { a.Screenshot = &screenshot return a }
[ "func", "(", "a", "*", "BeginFrameArgs", ")", "SetScreenshot", "(", "screenshot", "ScreenshotParams", ")", "*", "BeginFrameArgs", "{", "a", ".", "Screenshot", "=", "&", "screenshot", "\n", "return", "a", "\n", "}" ]
// SetScreenshot sets the Screenshot optional argument. If set, a // screenshot of the frame will be captured and returned in the // response. Otherwise, no screenshot will be captured. Note that // capturing a screenshot can fail, for example, during renderer // initialization. In such a case, no screenshot data will ...
[ "SetScreenshot", "sets", "the", "Screenshot", "optional", "argument", ".", "If", "set", "a", "screenshot", "of", "the", "frame", "will", "be", "captured", "and", "returned", "in", "the", "response", ".", "Otherwise", "no", "screenshot", "will", "be", "captured...
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/headlessexperimental/command.go#L52-L55