1/* 2 * Copyright (c) 2022-2023 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15export interface Header { headerKey: string, headerValue: string } 16 17export class WebResourceRequestPeer { 18 constructor() {} 19 getRequestHeader(): Array<Header> { 20 throw new Error("[WebResourceRequestPeer.getRequestHeader] - method not implemented.") 21 } 22 getRequestUrl(): string { 23 throw new Error("[WebResourceRequestPeer.getRequestUrl] - method not implemented.") 24 } 25 isRequestGesture(): boolean { 26 throw new Error("[WebResourceRequestPeer.isRequestGesture] - method not implemented.") 27 } 28 isMainFrame(): boolean { 29 throw new Error("[WebResourceRequestPeer.isMainFrame] - method not implemented.") 30 } 31 isRedirect(): boolean { 32 throw new Error("[WebResourceRequestPeer.isRedirect] - method not implemented.") 33 } 34 getRequestMethod(): string { 35 throw new Error("[WebResourceRequestPeer.getRequestMethod] - method not implemented.") 36 } 37} 38 39export interface WebLoadInterceptDataType { data: WebResourceRequestPeer } 40