1 |
|
2 |
|
3 | import { __extends } from "tslib";
|
4 | import { BaseRequestPolicy, } from "./requestPolicy";
|
5 | var agentNotSupportedInBrowser = new Error("AgentPolicy is not supported in browser environment");
|
6 | export function agentPolicy(_agentSettings) {
|
7 | return {
|
8 | create: function (_nextPolicy, _options) {
|
9 | throw agentNotSupportedInBrowser;
|
10 | },
|
11 | };
|
12 | }
|
13 | var AgentPolicy = (function (_super) {
|
14 | __extends(AgentPolicy, _super);
|
15 | function AgentPolicy(nextPolicy, options) {
|
16 | var _this = _super.call(this, nextPolicy, options) || this;
|
17 | throw agentNotSupportedInBrowser;
|
18 | return _this;
|
19 | }
|
20 | AgentPolicy.prototype.sendRequest = function (_request) {
|
21 | throw agentNotSupportedInBrowser;
|
22 | };
|
23 | return AgentPolicy;
|
24 | }(BaseRequestPolicy));
|
25 | export { AgentPolicy };
|
26 |
|
\ | No newline at end of file |