MCPcopy Create free account
hub / github.com/deta/surf / removeBeforeRequest

Method removeBeforeRequest

app/src/main/webRequestManager.ts:124–130  ·  view source on GitHub ↗
(session: Electron.Session, handler: BeforeRequestCallback)

Source from the content-addressed store, hash-verified

122 }
123
124 private removeBeforeRequest(session: Electron.Session, handler: BeforeRequestCallback) {
125 const handlers = this.beforeRequest.get(session)
126 if (handlers) {
127 const index = handlers.indexOf(handler)
128 if (index !== -1) handlers.splice(index, 1)
129 }
130 }
131
132 private removeBeforeSendHeaders(session: Electron.Session, handler: BeforeSendHeadersCallback) {
133 const handlers = this.beforeSendHeaders.get(session)

Callers 1

addBeforeRequestMethod · 0.95

Calls 1

getMethod · 0.65

Tested by

no test coverage detected