import { ProxySettings } from "../serviceClient" ; import { BaseRequestPolicy , RequestPolicy , RequestPolicyFactory , RequestPolicyOptionsLike , } from "./requestPolicy" ; import { HttpOperationResponse } from "../httpOperationResponse" ; import { WebResourceLike } from "../webResource" ; const proxyNotSupportedInBrowser = new Error ( "ProxyPolicy is not supported in browser environment" ) ; export function getDefaultProxySettings ( _proxyUrl ? ) { return undefined ; } export function proxyPolicy ( _proxySettings ? ) { return { create : ( _nextPolicy , _options ) => { throw proxyNotSupportedInBrowser ; } , } ; } export class ProxyPolicy extends BaseRequestPolicy { constructor ( nextPolicy , options ) { super ( nextPolicy , options ) ; throw proxyNotSupportedInBrowser ; } public sendRequest ( _request ) { throw proxyNotSupportedInBrowser ; } }