Merge branch 'daschult/httpPipelineDev' into daschult/httpPipelineDevPolicies

This commit is contained in:
Dan Schulte 2018-04-09 14:31:50 -07:00
Родитель a6efb6e5c9 b6dbfb6869
Коммит 8055d3c285
62 изменённых файлов: 607 добавлений и 626 удалений

Просмотреть файл

@ -1 +1 @@
{"version":3,"file":"apiKeyCredentials.js","sourceRoot":"","sources":["../../../lib/credentials/apiKeyCredentials.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,+FAA+F;;AAoB/F;;GAEG;AACH;IAIE;;;;;OAKG;IACH,2BAAY,OAAgC;QAC1C,EAAE,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YACnE,MAAM,IAAI,KAAK,CAAC,8HAA0H,CAAC,CAAC;QAC9I,CAAC;QACD,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;QACjC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IACjC,CAAC;IAED;;;;;OAKG;IACH,uCAAW,GAAX,UAAY,WAAwB;QAClC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC;YACjB,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,yEAAuE,CAAC,CAAC,CAAC;QAC5G,CAAC;QAED,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;YAClB,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC;gBACzB,WAAW,CAAC,OAAO,GAAG,EAAE,CAAC;YAC3B,CAAC;YACD,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;QACpD,CAAC;QAED,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;YACjB,EAAE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;IACjC,CAAC;IAED;;;;;OAKG;IACH,uCAAW,GAAX,UAAY,WAAwB;QAClC,IAAI,CAAC,WAAW,EAAE;YAChB,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,yEAAuE,CAAC,CAAC,CAAC;SAC3G;QAED,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE;gBACxB,WAAW,CAAC,OAAO,GAAG,EAAE,CAAC;aAC1B;YACD,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;SACnD;QAED,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,IAAI,CAAC,WAAW,CAAC,GAAG,EAAE;gBACpB,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC,CAAC;aAC/E;YACD,IAAI,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;gBACpC,WAAW,CAAC,GAAG,IAAI,GAAG,CAAC;aACxB;YACD,KAAK,IAAM,GAAG,IAAI,IAAI,CAAC,OAAO,EAAE;gBAC9B,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;oBAClC,WAAW,CAAC,GAAG,IAAI,GAAG,CAAC;iBACxB;gBACD,WAAW,CAAC,GAAG,IAAO,GAAG,SAAI,IAAI,CAAC,OAAO,CAAC,GAAG,CAAG,CAAC;aAClD;SACF;QAED,OAAO,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IACtC,CAAC;IACH,wBAAC;AAAD,CAAC,AArDD,IAqDC;AArDY,8CAAiB"}

Просмотреть файл

@ -1 +1 @@
{"version":3,"file":"basicAuthenticationCredentials.js","sourceRoot":"","sources":["../../../lib/credentials/basicAuthenticationCredentials.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,+FAA+F;;AA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C,OAAO;YAAE,WAAW,CAAC,OAAO,GAAG,EAAE,CAAC;QACnD,WAAW,CAAC,OAAO,CAAC,eAAe,CAAC,aAAa,CAAC,GAAG,kBAAkB,CAAC;QACxE,OAAO,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IACtC,CAAC;IACH,qCAAC;AAAD,CAAC,AA7BD,IA6BC;AA7BY,wEAA8B"}

Просмотреть файл

@ -1 +1 @@
{"version":3,"file":"tokenCredentials.js","sourceRoot":"","sources":["../../../lib/credentials/tokenCredentials.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,+FAA+F;;AAE/F,+CAA8C;AAI9C,IAAM,eAAe,GAAG,qBAAS,CAAC,eAAe,CAAC;AAClD,IAAM,4BAA4B,GAAG,QAAQ,CAAC;AAE9C;;;;;;GAMG;AACH;IAIE,0BAAY,KAAa,EAAE,mBAA0D;QAA1D,oCAAA,EAAA,kDAA0D;QAFrF,wBAAmB,GAAW,4BAA4B,CAAC;QAGzD,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;YACX,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;QACxD,CAAC;QACD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;IACjD,CAAC;IAED;;;;;OAKG;IACH,sCAAW,GAAX,UAAY,WAAwB;QAClC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC;YAAC,WAAW,CAAC,OAAO,GAAG,EAAE,CAAC;QACnD,WAAW,CAAC,OAAO,CAAC,eAAe,CAAC,aAAa,CAAC,GAAM,IAAI,CAAC,mBAAmB,SAAI,IAAI,CAAC,KAAO,CAAC;QACjG,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IACtC,CAAC;IACH,uBAAC;AAAD,CAAC,AAvBD,IAuBC;AAvBY,4CAAgB"}
{"version":3,"file":"tokenCredentials.js","sourceRoot":"","sources":["../../../lib/credentials/tokenCredentials.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,+FAA+F;;AAE/F,+CAA8C;AAI9C,IAAM,eAAe,GAAG,qBAAS,CAAC,eAAe,CAAC;AAClD,IAAM,4BAA4B,GAAG,QAAQ,CAAC;AAE9C;;;;;;GAMG;AACH;IAIE,0BAAY,KAAa,EAAE,mBAA0D;QAA1D,oCAAA,EAAA,kDAA0D;QAFrF,wBAAmB,GAAW,4BAA4B,CAAC;QAGzD,IAAI,CAAC,KAAK,EAAE;YACV,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;SACvD;QACD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;IACjD,CAAC;IAED;;;;;OAKG;IACH,sCAAW,GAAX,UAAY,WAAwB;QAClC,IAAI,CAAC,WAAW,CAAC,OAAO;YAAE,WAAW,CAAC,OAAO,GAAG,EAAE,CAAC;QACnD,WAAW,CAAC,OAAO,CAAC,eAAe,CAAC,aAAa,CAAC,GAAM,IAAI,CAAC,mBAAmB,SAAI,IAAI,CAAC,KAAO,CAAC;QACjG,OAAO,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IACtC,CAAC;IACH,uBAAC;AAAD,CAAC,AAvBD,IAuBC;AAvBY,4CAAgB"}

43
dist/lib/fetchHttpClient.js поставляемый
Просмотреть файл

@ -48,11 +48,11 @@ var FetchHttpClient = /** @class */ (function () {
}
FetchHttpClient.prototype.send = function (request) {
return __awaiter(this, void 0, void 0, function () {
var result, fetchRequestOptions, fetchResponse_1, responseHeaders_1, fetchResponseHeaders, response, err_1;
var _this = this;
var fetchRequestOptions, fetchResponse, responseHeaders, fetchResponseHeaders;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
_a.trys.push([0, 2, , 3]);
fetchRequestOptions = {
method: request.httpMethod,
headers: request.headers.toJson(),
@ -60,24 +60,27 @@ var FetchHttpClient = /** @class */ (function () {
};
return [4 /*yield*/, fetch(request.url, fetchRequestOptions)];
case 1:
fetchResponse_1 = _a.sent();
responseHeaders_1 = new httpHeaders_1.HttpHeaders();
fetchResponseHeaders = fetchResponse_1.headers;
fetchResponseHeaders.forEach(function (headerValue, headerName) { responseHeaders_1.set(headerName, headerValue); });
response = {
request: request,
statusCode: fetchResponse_1.status,
headers: responseHeaders_1,
textBody: function () { return fetchResponse_1.text(); },
deserializedBody: function () { return fetchResponse_1.json(); }
};
result = Promise.resolve(response);
return [3 /*break*/, 3];
case 2:
err_1 = _a.sent();
result = Promise.reject(err_1);
return [3 /*break*/, 3];
case 3: return [2 /*return*/, result];
fetchResponse = _a.sent();
responseHeaders = new httpHeaders_1.HttpHeaders();
fetchResponseHeaders = fetchResponse.headers;
fetchResponseHeaders.forEach(function (headerValue, headerName) { responseHeaders.set(headerName, headerValue); });
return [2 /*return*/, {
request: request,
statusCode: fetchResponse.status,
headers: responseHeaders,
textBody: function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, fetchResponse.text()];
case 1: return [2 /*return*/, _a.sent()];
}
}); }); },
deserializedBody: function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, fetchResponse.json()];
case 1: return [2 /*return*/, _a.sent()];
}
}); }); }
}];
}
});
});

2
dist/lib/fetchHttpClient.js.map поставляемый
Просмотреть файл

@ -1 +1 @@
{"version":3,"file":"fetchHttpClient.js","sourceRoot":"","sources":["../../lib/fetchHttpClient.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,6CAA4C;AAM5C;;GAEG;AACH,IAAM,KAAK,GAAgB,OAAO,CAAC,gBAAgB,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC;AAEhF;;GAEG;AACH;IAAA;IAgCA,CA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CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC;AAEhF;;GAEG;AACH;IAAA;IAsBA,CAAC;IArBgB,8BAAI,GAAjB,UAAkB,OAAoB;;;;;;;wBAC5B,mBAAmB,GAAgB;4BACrC,MAAM,EAAE,OAAO,CAAC,UAAU;4BAC1B,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE;4BACjC,IAAI,EAAE,OAAO,CAAC,IAAI;yBACrB,CAAC;wBAE8B,qBAAM,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,mBAAmB,CAAC,EAAA;;wBAAvE,aAAa,GAAa,SAA6C;wBAEvE,eAAe,GAAG,IAAI,yBAAW,EAAE,CAAC;wBACpC,oBAAoB,GAAY,aAAa,CAAC,OAAO,CAAC;wBAC5D,oBAAoB,CAAC,OAAO,CAAC,UAAC,WAAmB,EAAE,UAAkB,IAAO,eAAe,CAAC,GAAG,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;wBAE7H,sBAAO;gCACH,OAAO,EAAE,OAAO;gCAChB,UAAU,EAAE,aAAa,CAAC,MAAM;gCAChC,OAAO,EAAE,eAAe;gCACxB,QAAQ,EAAE;;gDAAY,qBAAM,aAAa,CAAC,IAAI,EAAE,EAAA;gDAA1B,sBAAA,SAA0B,EAAA;;yCAAA;gCAChD,gBAAgB,EAAE;;gDAAY,qBAAM,aAAa,CAAC,IAAI,EAAE,EAAA;gDAA1B,sBAAA,SAA0B,EAAA;;yCAAA;6BAC3D,EAAC;;;;KACL;IACL,sBAAC;AAAD,CAAC,AAtBD,IAsBC;AAtBY,0CAAe"}

2
dist/lib/filters/baseFilter.js.map поставляемый
Просмотреть файл

@ -1 +1 @@
{"version":3,"file":"baseFilter.js","sourceRoot":"","sources":["../../../lib/filters/baseFilter.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,+FAA+F;;AAK/F;IAEE;IAAgB,CAAC;IAEjB,2BAAM,GAAN,UAAO,OAAoB;QACzB,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAClC,CAAC;IAED,0BAAK,GAAL,UAAM,QAA+B;QACnC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACnC,CAAC;IACH,iBAAC;AAAD,CAAC,AAXD,IAWC;AAXY,gCAAU"}
{"version":3,"file":"baseFilter.js","sourceRoot":"","sources":["../../../lib/filters/baseFilter.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,+FAA+F;;AAK/F;IAEE;IAAgB,CAAC;IAEjB,2BAAM,GAAN,UAAO,OAAoB;QACzB,OAAO,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAClC,CAAC;IAED,0BAAK,GAAL,UAAM,QAA+B;QACnC,OAAO,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACnC,CAAC;IACH,iBAAC;AAAD,CAAC,AAXD,IAWC;AAXY,gCAAU"}

Просмотреть файл

@ -1 +1 @@
{"version":3,"file":"exponentialRetryPolicyFilter.js","sourceRoot":"","sources":["../../../lib/filters/exponentialRetryPolicyFilter.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,+FAA+F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE/F,2CAA0C;AAC1C,qCAAuC;AAevC;;;;;;;;;GASG;AACH;IAAkD,gDAAU;IAW1D,sCAAY,UAAmB,EAAE,aAAsB,EAAE,gBAAyB,EAAE,gBAAyB;QAA7G,YACE,iBAAO,SAKR;QAXD,mCAA6B,GAAG,IAAI,GAAG,EAAE,CAAC;QAC1C,gCAA0B,GAAG,CAAC,CAAC;QAC/B,uCAAiC,GAAG,IAAI,GAAG,EAAE,CAAC;QAC9C,uCAAiC,GAAG,IAAI,GAAG,CAAC,CAAC;QAI3C,KAAI,CAAC,UAAU,GAAG,OAAO,UAAU,KAAK,QAAQ,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e,CAAC,iBAAiB,CAAC,OAAO,CAAC,EAAA;;wBAAnF,GAAG,GAA0B,SAAsD;wBACzF,sBAAO,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,SAAS,EAAE,GAAG,CAAC,EAAC;;;wBAEvC,sBAAO,IAAI,CAAC,KAAK,CAAC,iBAAiB,EAAE,SAAS,EAAE,KAAG,CAAC,EAAC;;;wBAGvD,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE;4BAC5B,qFAAqF;4BACrF,GAAG,GAAG,SAAS,CAAC,KAAK,CAAC;4BACtB,sBAAO,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,EAAC;yBAC5B;wBACD,sBAAO,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAC;;;;;KAE7C;IAED,4CAAK,GAAL,UAAM,iBAAwC;QAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IACH,mCAAC;AAAD,CAAC,AAtGD,CAAkD,uBAAU,GAsG3D;AAtGY,oEAA4B"}

2
dist/lib/filters/logFilter.js.map поставляемый
Просмотреть файл

@ -1 +1 @@
{"version":3,"file":"logFilter.js","sourceRoot":"","sources":["../../../lib/filters/logFilter.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,+FAA+F;;;;;;;;;;;;AAE/F,2CAA0C;AAG1C;IAA+B,6BAAU;IAIvC,mBAAY,MAAyB;QAAzB,uBAAA,EAAA,SAAc,OAAO,CAAC,GAAG;QAArC,YACE,iBAAO,SAER;QADC,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;;IACvB,CAAC;IAED,yBAAK,GAAL,UAAM,iBAAwC;QAC5C,IAAM,IAAI,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,MAAM,CAAC,iBAAe,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC,OAAO,EAAE,SAAS,EAAE,CAAC,CAAG,CAAC,CAAC;QACtF,IAAI,CAAC,MAAM,CAAC,8BAA4B,iBAAiB,CAAC,QAAQ,CAAC,MAAQ,CAAC,CAAC;QAC7E,IAAM,YAAY,GAAG,iBAAiB,CAAC,UAAU,CAAC;QAClD,IAAI,CAAC,MAAM,CAAC,cAAY,YAAc,CAAC,CAAC;QACxC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC5C,CAAC;IACH,gBAAC;AAAD,CAAC,AAjBD,CAA+B,uBAAU,GAiBxC;AAjBY,8BAAS"}
{"version":3,"file":"logFilter.js","sourceRoot":"","sources":["../../../lib/filters/logFilter.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,+FAA+F;;;;;;;;;;;;AAE/F,2CAA0C;AAG1C;IAA+B,6BAAU;IAIvC,mBAAY,MAAyB;QAAzB,uBAAA,EAAA,SAAc,OAAO,CAAC,GAAG;QAArC,YACE,iBAAO,SAER;QADC,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;;IACvB,CAAC;IAED,yBAAK,GAAL,UAAM,iBAAwC;QAC5C,IAAM,IAAI,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,MAAM,CAAC,iBAAe,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC,OAAO,EAAE,SAAS,EAAE,CAAC,CAAG,CAAC,CAAC;QACtF,IAAI,CAAC,MAAM,CAAC,8BAA4B,iBAAiB,CAAC,QAAQ,CAAC,MAAQ,CAAC,CAAC;QAC7E,IAAM,YAAY,GAAG,iBAAiB,CAAC,UAAU,CAAC;QAClD,IAAI,CAAC,MAAM,CAAC,cAAY,YAAc,CAAC,CAAC;QACxC,OAAO,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC5C,CAAC;IACH,gBAAC;AAAD,CAAC,AAjBD,CAA+B,uBAAU,GAiBxC;AAjBY,8BAAS"}

Просмотреть файл

@ -1 +1 @@
{"version":3,"file":"msRestUserAgentFilter.js","sourceRoot":"","sources":["../../../lib/filters/msRestUserAgentF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GAAG,EAAE,CAAC;YAC3C,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SAC5E;QACD,OAAO,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAClC,CAAC;IAED,sCAAM,GAAN,UAAO,OAAoB;QACzB,IAAM,IAAI,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,OAAO,CAAC,OAAO;YAAE,OAAO,CAAC,OAAO,GAAG,EAAE,CAAC;QAC3C,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,UAAU,CAAC,EAAE;YAChD,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;SACjC;aAAM;YACL,OAAO,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;SACjC;IACH,CAAC;IACH,4BAAC;AAAD,CAAC,AA7CD,CAA2C,uBAAU,GA6CpD;AA7CY,sDAAqB"}

11
dist/lib/filters/redirectFilter.js поставляемый
Просмотреть файл

@ -60,7 +60,7 @@ var RedirectFilter = /** @class */ (function (_super) {
}
RedirectFilter.prototype.handleRedirect = function (operationResponse, currentRetries) {
return __awaiter(this, void 0, void 0, function () {
var request, response, urlObject, res, err_1;
var request, response, res, err_1;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
@ -69,14 +69,7 @@ var RedirectFilter = /** @class */ (function (_super) {
if (!(response && response.headers && response.headers.get("location") &&
(response.status === 300 || response.status === 307 || (response.status === 303 && request.method === "POST")) &&
(!this.maximumRetries || currentRetries < this.maximumRetries))) return [3 /*break*/, 5];
if (parse(response.headers.get("location")).hostname) {
request.url = response.headers.get("location");
}
else {
urlObject = parse(request.url);
urlObject.set("pathname", response.headers.get("location"));
request.url = urlObject.href;
}
request.url = parse(response.headers.get("location"), parse(request.url)).href;
// POST request with Status code 303 should be converted into a
// redirected GET request if the redirect url is present in the location header
if (response.status === 303) {

2
dist/lib/filters/redirectFilter.js.map поставляемый
Просмотреть файл

@ -1 +1 @@
{"version":3,"file":"redirectFilter.js","sourceRoot":"","sources":["../../../lib/filters/redirectFilter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4DAA4D;AAC5D,+FAA+F;AAC/F,2CAA0C;AAE1C,qCAAuC;AAEvC,IAAM,KAAK,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AAEnC;IAAoC,kCAAU;IAI5C,wBAAY,cAAmB;QAAnB,+BAAA,EAAA,mBAAmB;QAA/B,YACE,iBAAO,SAER;QADC,KAAI,CAAC,cAAc,GAAG,cAAc,CAAC;;IACvC,CAAC;IAEK,uCAAc,GAApB,UAAqB,iBAAwC,EAAE,cAAsB;;;;;;wBAC7E,OAAO,GAAG,iBAAiB,CAAC,OAAO,CAAC;wBACpC,QAAQ,GAAG,iBAAiB,CAAC,QAAQ,CAAC;6BACxC,CAAA,QAAQ,IAAI,QAAQ,CAAC,OAAO,IAAI,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC;4BAClE,CAAC,QAAQ,CAAC,MAAM,KAAK,GAAG,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,KAAK,GAAG,IAAI,OAAO,CAAC,MAAM,KAAK,MAAM,CAAC,CAAC;4BAC9G,CAAC,CAAC,IAAI,CAAC,cAAc,IAAI,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,CAAA,EAF5D,wBAE4D;wBAC9D,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;4BACrD,OAAO,CAAC,GAAG,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAW,CAAC;wBAC3D,CAAC;wBAAC,IAAI,CAAC,CAAC;4BACA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IAED,8BAAK,GAAL,UAAM,iBAAwC;QAC5C,OAAO,IAAI,CAAC,cAAc,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAC;IACnD,CAAC;IACH,qBAAC;AAAD,CAAC,AAtCD,CAAoC,uBAAU,GAsC7C;AAtCY,wCAAc"}

Просмотреть файл

@ -1 +1 @@
{"version":3,"file":"rpRegistrationFilter.js","sourceRoot":"","sources":["../../../lib/filters/rpRegistrationFilter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4DAA4D;AAC5D,+FAA+F;AAC/F,2CAA0C;AAG1C,qCAAuC;AAEvC,iCAAiC;AACjC,IAAI,YAAY,GAAG,EAAE,CAAC;AACtB,gCAAgC;AAEhC;IAA0C,wCAAU;IAElD,8BAAY,YAAiB;QAAjB,6BAAA,EAAA,iBAAiB;QAA7B,YACE,iBAAO,SAER;QADC,YAAY,GAAG,YAAY,CAAC;;IAC9B,CAAC;IAEK,oCAAK,GAAX,UAAY,iBAAwC;;;;;;wBAE5C,OAAO,GAAG,iBAAiB,CAAC,OAAO,CAAC;wBAC1C,EAAE,CAAC,CAAC,iBAAiB,CAAC,QAAQ,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC,CAAC;4BAC9C,MAAM,GAAG,IAAI,CAAC,yBAAyB,CAAC,iBAAiB,CAAC,UAAoB,CAAC,CAAC;wBAClF,CAAC;6BACG,MAAM,EAAN,wBAAM;wBACR,SAAS,GAAG,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;wBACjD,kBAAkB,GAAG,KAAK,CAAC;;;;wBAER,qBAAM,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAA;;wBAAtE,kBAAkB,GAAG,SAAiD,CAAC;;;;;;6BAOrE,kBAAkB,EAAlB,wBAAkB;wBACpB,2EAA2E;wBAC3E,0EAA0E;wBAC1E,OAAO,CAAC,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UAAU,IAAI,GAAG,CAAC,iBAAiB,IAAI,GAAG,CAAC,iBAAiB,KAAK,YAAY,EAAE;4BACrF,MAAM,GAAG,IAAI,CAAC;yBACf;6BAAM;4BACL,UAAU,CAAC,cAAQ,OAAO,KAAI,CAAC,qBAAqB,CAAC,GAAG,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC,CAAC;yBACrG;wBACD,sBAAO,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,EAAC;;;;KAChC;IACH,2BAAC;AAAD,CAAC,AA1KD,CAA0C,uBAAU,GA0KnD;AA1KY,oDAAoB"}

2
dist/lib/filters/signingFilter.js.map поставляемый
Просмотреть файл

@ -1 +1 @@
{"version":3,"file":"signingFilter.js","sourceRoot":"","sources":["../../../lib/filters/signingFilter.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,+FAA+F;;;;;;;;;;;;AAE/F,2CAA0C;AAI1C;IAAmC,iCAAU;IAI3C,uBAAY,sBAAgD;QAA5D,YACE,iBAAO,SAER;QADC,KAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;;IACvD,CAAC;IAED,8BAAM,GAAN,UAAO,OAAoB;QACzB,IAAM,IAAI,GAAG,IAAI,CAAC;QAClB,MAAM,CAAC,IAAI,CAAC,sBAAsB,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAC1D,CAAC;IACH,oBAAC;AAAD,CAAC,AAbD,CAAmC,uBAAU,GAa5C;AAbY,sCAAa"}
{"version":3,"file":"signingFilter.js","sourceRoot":"","sources":["../../../lib/filters/signingFilter.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,+FAA+F;;;;;;;;;;;;AAE/F,2CAA0C;AAI1C;IAAmC,iCAAU;IAI3C,uBAAY,sBAAgD;QAA5D,YACE,iBAAO,SAER;QADC,KAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;;IACvD,CAAC;IAED,8BAAM,GAAN,UAAO,OAAoB;QACzB,IAAM,IAAI,GAAG,IAAI,CAAC;QAClB,OAAO,IAAI,CAAC,sBAAsB,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAC1D,CAAC;IACH,oBAAC;AAAD,CAAC,AAbD,CAAmC,uBAAU,GAa5C;AAbY,sCAAa"}

Просмотреть файл

@ -1 +1 @@
{"version":3,"file":"systemErrorRetryPolicyFilter.js","sourceRoot":"","sources":["../../../lib/filters/systemErrorRetryPolicyFilter.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,+FAA+F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE/F,2CAA0C;AAC1C,qCAAuC;AAevC;;;;;;;;;GASG;AACH;IAAkD,gDAAU;IAW1D,sCAAY,UAAmB,EAAE,aAAsB,EAAE,gBAAyB,EAAE,gBAAyB;QAA7G,YACE,iBAAO,SAKR;QAXD,mCAA6B,GAAG,IAAI,GAAG,EAAE,CAAC;QAC1C,gCAA0B,GAAG,CAAC,CAAC;QAC/B,uCAAiC,GAAG,IAAI,GAAG,EAAE,CAAC;QAC9C,uCAAiC,GAAG,IAAI,GAAG,CAAC,CAAC;QAI3C,KAAI,CAAC,UAAU,GAAG,OAAO,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,KAAI,CAAC,0BAA0B,CAAC;QAChG,KAAI,CAAC,aAAa,GAAG,OAAO,aAAa,KAAK,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAI,CAAC,6BAA6B,CAAC;QAC5G,KAAI,CAAC,gBAAgB,GAAG,OAAO,gBAAgB,KAAK,QAAQ,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,KAAI,CAAC,iCAAiC,CAAC;QACzH,KAAI,CAAC,gBAAgB,GAAG,OAAO,gBAAgB,KAAK,QAAQ,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,KAAI,CAAC,iCAAiC,CAAC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,CAAC,CAAC,CAAC,2DAA2D;IACnG,CAAC;IACH,mCAAC;AAAD,CAAC,AAnGD,CAAkD,uBAAU,GAmG3D;AAnGY,oEAA4B"}

10
dist/lib/httpHeaders.js поставляемый
Просмотреть файл

@ -13,7 +13,7 @@ function getHeaderKey(headerName) {
*/
var HttpHeaders = /** @class */ (function () {
function HttpHeaders(rawHeaders) {
this.headersMap = {};
this._headersMap = {};
if (rawHeaders) {
for (var headerName in rawHeaders) {
this.set(headerName, rawHeaders[headerName]);
@ -27,7 +27,7 @@ var HttpHeaders = /** @class */ (function () {
* @param headerValue The value of the header to set.
*/
HttpHeaders.prototype.set = function (headerName, headerValue) {
this.headersMap[getHeaderKey(headerName)] = { name: headerName, value: headerValue.toString() };
this._headersMap[getHeaderKey(headerName)] = { name: headerName, value: headerValue.toString() };
};
/**
* Get the header value for the provided header name, or undefined if no header exists in this
@ -35,7 +35,7 @@ var HttpHeaders = /** @class */ (function () {
* @param headerName The name of the header.
*/
HttpHeaders.prototype.get = function (headerName) {
var header = this.headersMap[getHeaderKey(headerName)];
var header = this._headersMap[getHeaderKey(headerName)];
return !header ? undefined : header.value;
};
/**
@ -43,8 +43,8 @@ var HttpHeaders = /** @class */ (function () {
*/
HttpHeaders.prototype.headers = function () {
var headers = [];
for (var headerKey in this.headersMap) {
headers.push(this.headersMap[headerKey]);
for (var headerKey in this._headersMap) {
headers.push(this._headersMap[headerKey]);
}
return headers;
};

2
dist/lib/httpHeaders.js.map поставляемый
Просмотреть файл

@ -1 +1 @@
{"version":3,"file":"httpHeaders.js","sourceRoot":"","sources":["../../lib/httpHeaders.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,+FAA+F;;AAE/F;;GAEG;AACH,sBAAsB,UAAkB;IACpC,MAAM,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC;AACpC,CAAC;AAsBD;;GAEG;AACH;IAGI,qBAAY,UAA2B;QACnC,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;QACrB,EAAE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GAAiB,IAAI,CAAC,OAAO,EAAE,CAAC;QAC7C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE;YACrC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;SACvC;QACD,OAAO,YAAY,CAAC;IACxB,CAAC;IAED;;OAEG;IACI,4BAAM,GAAb;QACI,IAAM,MAAM,GAAmB,EAAE,CAAC;QAElC,IAAM,OAAO,GAAiB,IAAI,CAAC,OAAO,EAAE,CAAC;QAC7C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE;YACrC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;SAC9C;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;IACL,kBAAC;AAAD,CAAC,AAhFD,IAgFC;AAhFY,kCAAW"}

28
dist/lib/httpPipeline.js поставляемый
Просмотреть файл

@ -16,17 +16,17 @@ function getDefaultHttpClient() {
* be applied to a HTTP response when it is received.
*/
var HttpPipeline = /** @class */ (function () {
function HttpPipeline(requestPolicyFactories, options) {
this.requestPolicyFactories = requestPolicyFactories;
this.options = options;
if (!this.options) {
this.options = {};
function HttpPipeline(_requestPolicyFactories, _httpPipelineOptions) {
this._requestPolicyFactories = _requestPolicyFactories;
this._httpPipelineOptions = _httpPipelineOptions;
if (!this._httpPipelineOptions) {
this._httpPipelineOptions = {};
}
if (!this.options.httpClient) {
this.options.httpClient = getDefaultHttpClient();
if (!this._httpPipelineOptions.httpClient) {
this._httpPipelineOptions.httpClient = getDefaultHttpClient();
}
this.httpClient = this.options.httpClient;
this.requestPolicyOptions = new requestPolicyOptions_1.RequestPolicyOptions(this.options.pipelineLogger);
this._httpClient = this._httpPipelineOptions.httpClient;
this._requestPolicyOptions = new requestPolicyOptions_1.RequestPolicyOptions(this._httpPipelineOptions.pipelineLogger);
}
/**
* Send the provided HttpRequest request.
@ -34,12 +34,12 @@ var HttpPipeline = /** @class */ (function () {
* @return A Promise that resolves to the HttpResponse from the targeted server.
*/
HttpPipeline.prototype.send = function (request) {
var requestPolicyChainHead = this.httpClient;
if (this.requestPolicyFactories) {
var requestPolicyFactoriesLength = this.requestPolicyFactories.length;
var requestPolicyChainHead = this._httpClient;
if (this._requestPolicyFactories) {
var requestPolicyFactoriesLength = this._requestPolicyFactories.length;
for (var i = requestPolicyFactoriesLength - 1; i >= 0; --i) {
var requestPolicyFactory = this.requestPolicyFactories[i];
requestPolicyChainHead = requestPolicyFactory(requestPolicyChainHead, this.requestPolicyOptions);
var requestPolicyFactory = this._requestPolicyFactories[i];
requestPolicyChainHead = requestPolicyFactory(requestPolicyChainHead, this._requestPolicyOptions);
}
}
return requestPolicyChainHead.send(request);

2
dist/lib/httpPipeline.js.map поставляемый
Просмотреть файл

@ -1 +1 @@
{"version":3,"file":"httpPipeline.js","sourceRoot":"","sources":["../../lib/httpPipeline.ts"],"names":[],"mappings":";;AAAA,4DAA4D;AAC5D,+FAA+F;AAC/F,qDAAoD;AAOpD,+DAA8D;AAE9D,IAAI,iBAA6B,CAAC;AAElC;IACI,EAAE,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC;QACrB,iBAAiB,GAAG,IAAI,iCAAe,EAAE,CAAC;IAC9C,CAAC;IACD,MAAM,CAAC,iBAAiB,CAAC;AAC7B,CAAC;AAED;;;GAGG;AACH;IAII,sBAA6B,sBAA8C,EAAmB,OAA4B;QAA7F,2BAAsB,GAAtB,sBAAsB,CAAwB;QAAmB,YAAO,GAAP,OAAO,CAAqB;QACtH,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;YAChB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QACtB,CAAC;QAED,EAAE,CAA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iB,CAAC;AAC7B,CAAC;AAED;;;GAGG;AACH;IAII,sBAA6B,uBAA+C,EAAmB,oBAAyC;QAA3G,4BAAuB,GAAvB,uBAAuB,CAAwB;QAAmB,yBAAoB,GAApB,oBAAoB,CAAqB;QACpI,IAAI,CAAC,IAAI,CAAC,oBAAoB,EAAE;YAC5B,IAAI,CAAC,oBAAoB,GAAG,EAAE,CAAC;SAClC;QAED,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,UAAU,EAAE;YACvC,IAAI,CAAC,oBAAoB,CAAC,UAAU,GAAG,oBAAoB,EAAE,CAAC;SACjE;QAED,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,oBAAoB,CAAC,UAAU,CAAC;QACxD,IAAI,CAAC,qBAAqB,GAAG,IAAI,2CAAoB,CAAC,IAAI,CAAC,oBAAoB,CAAC,cAAc,CAAC,CAAC;IACpG,CAAC;IAED;;;;OAIG;IACI,2BAAI,GAAX,UAAY,OAAoB;QAC5B,IAAI,sBAAsB,GAAkB,IAAI,CAAC,WAAW,CAAC;QAC7D,IAAI,IAAI,CAAC,uBAAuB,EAAE;YAC9B,IAAM,4BAA4B,GAAW,IAAI,CAAC,uBAAuB,CAAC,MAAM,CAAC;YACjF,KAAK,IAAI,CAAC,GAAG,4BAA4B,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,EAAE;gBACxD,IAAM,oBAAoB,GAAyB,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;gBACnF,sBAAsB,GAAG,oBAAoB,CAAC,sBAAsB,EAAE,IAAI,CAAC,qBAAqB,CAAC,CAAC;aACrG;SACJ;QACD,OAAO,sBAAsB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChD,CAAC;IACL,mBAAC;AAAD,CAAC,AAjCD,IAiCC;AAjCY,oCAAY"}

3
dist/lib/httpPipelineLogger.js поставляемый
Просмотреть файл

@ -2,6 +2,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
Object.defineProperty(exports, "__esModule", { value: true });
var httpPipelineLogLevel_1 = require("./httpPipelineLogLevel");
/**
* A HttpPipelineLogger that will send its logs to the console.
*/
@ -21,7 +22,7 @@ var ConsoleHttpPipelineLogger = /** @class */ (function () {
* provided message.
*/
ConsoleHttpPipelineLogger.prototype.log = function (logLevel, message) {
console.log(logLevel + ": " + message);
console.log(httpPipelineLogLevel_1.HttpPipelineLogLevel[logLevel] + ": " + message);
};
return ConsoleHttpPipelineLogger;
}());

2
dist/lib/httpPipelineLogger.js.map поставляемый
Просмотреть файл

@ -1 +1 @@
{"version":3,"file":"httpPipelineLogger.js","sourceRoot":"","sources":["../../lib/httpPipelineLogger.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,+FAA+F;;AAyB/F;;GAEG;AACH;IACI;;;OAGG;IACH,mCAAmB,eAAqC;QAArC,oBAAe,GAAf,eAAe,CAAsB;IACxD,CAAC;IAED;;;;;;OAMG;IACH,uCAAG,GAAH,UAAI,QAA8B,EAAE,OAAe;QAC/C,OAAO,CAAC,GAAG,CAAI,QAAQ,UAAK,OAAS,CAAC,CAAC;IAC3C,CAAC;IACL,gCAAC;AAAD,CAAC,AAlBD,IAkBC;AAlBY,8DAAyB"}
{"version":3,"file":"httpPipelineLogger.js","sourceRoot":"","sources":["../../lib/httpPipelineLogger.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,+FAA+F;;AAE/F,+DAA8D;AAuB9D;;GAEG;AACH;IACI;;;OAGG;IACH,mCAAmB,eAAqC;QAArC,oBAAe,GAAf,eAAe,CAAsB;IACxD,CAAC;IAED;;;;;;OAMG;IACH,uCAAG,GAAH,UAAI,QAA8B,EAAE,OAAe;QAC/C,OAAO,CAAC,GAAG,CAAI,2CAAoB,CAAC,QAAQ,CAAC,UAAK,OAAS,CAAC,CAAC;IACjE,CAAC;IACL,gCAAC;AAAD,CAAC,AAlBD,IAkBC;AAlBY,8DAAyB"}

2
dist/lib/httpRequest.js.map поставляемый
Просмотреть файл

@ -1 +1 @@
{"version":3,"file":"httpRequest.js","sourceRoot":"","sources":["../../lib/httpRequest.ts"],"names":[],"mappings":";;AAAA,4DAA4D;AAC5D,+FAA+F;AAC/F,6CAA4D;AAG5D;;GAEG;AACH;IAGI,qBAAoB,WAAuB,EAAU,IAAY,EAAE,OAAqC,EAAU,KAAc;QAA5G,gBAAW,GAAX,WAAW,CAAY;QAAU,SAAI,GAAJ,IAAI,CAAQ;QAAiD,UAAK,GAAL,KAAK,CAAS;QAC5H,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;YACb,IAAM,SAAS,GAAW,CAAC,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,OAAI,IAAI,CAAC,IAAI,OAAG,CAAC,CAAC;YACzG,MAAM,IAAI,KAAK,CAAI,SAAS,2CAAwC,CAAC,CAAC;QAC1E,CAAC;QAED,IAAI,CAAC,QAAQ,GAAG,CAAC,OAAO,YAAY,yBAAW,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,yBAAW,CAAC,OAAO,CAAC,CAAC,CAAC;IAC1F,CAAC;IAKD,sBAAW,mCAAU;QAHrB;;WAEG;aACH;YACI,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC;QAC5B,CAAC;;;OAAA;IAKD,sBAAW,4BAAG;QAHd;;WAEG;aACH;YACI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;QACrB,CAAC;;;OAAA;IAKD,sBAAW,gCAAO;QAHlB;;WAEG;aACH;YACI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;;;OAAA;IAKD,sBAAW,6BAAI;QAHf;;WAEG;aACH;YACI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;;;OAAA;I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AAI;QAHf;;WAEG;aACH;YACI,OAAO,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;;;OAAA;IAED;;OAEG;IACI,2BAAK,GAAZ;QACI,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;IAC5C,CAAC;IACL,kBAAC;AAAD,CAAC,AA9CD,IA8CC;AA9CY,kCAAW"}

10
dist/lib/policies/userAgentPolicy.js поставляемый
Просмотреть файл

@ -26,17 +26,17 @@ function userAgentPolicy(userAgent) {
exports.userAgentPolicy = userAgentPolicy;
var UserAgentPolicy = /** @class */ (function (_super) {
__extends(UserAgentPolicy, _super);
function UserAgentPolicy(userAgent, nextPolicy, options) {
function UserAgentPolicy(_userAgent, nextPolicy, options) {
var _this = _super.call(this, nextPolicy, options) || this;
_this.userAgent = userAgent;
_this._userAgent = _userAgent;
return _this;
}
UserAgentPolicy.prototype.send = function (request) {
if (this.shouldLog(httpPipelineLogLevel_1.HttpPipelineLogLevel.INFO)) {
this.log(httpPipelineLogLevel_1.HttpPipelineLogLevel.INFO, "Set \"User-Agent\" header to \"" + this.userAgent + "\".");
this.log(httpPipelineLogLevel_1.HttpPipelineLogLevel.INFO, "Set \"User-Agent\" header to \"" + this._userAgent + "\".");
}
request.headers.set("User-Agent", this.userAgent);
return this.nextPolicy.send(request);
request.headers.set("User-Agent", this._userAgent);
return this._nextPolicy.send(request);
};
return UserAgentPolicy;
}(requestPolicy_1.BaseRequestPolicy));

2
dist/lib/policies/userAgentPolicy.js.map поставляемый
Просмотреть файл

@ -1 +1 @@
{"version":3,"file":"userAgentPolicy.js","sourceRoot":"","sources":["../../../lib/policies/userAgentPolicy.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4DAA4D;AAC5D,+FAA+F;AAC/F,gEAA+D;AAG/D,kDAAoE;AAIpE;;;GAGG;AACH,yBAAgC,SAAiB;IAC7C,MAAM,CAAC,UAAC,UAAyB,EAAE,OAA6B;QAC5D,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V,UAAU,CAAQ;;IAE/C,CAAC;IAED,8BAAI,GAAJ,UAAK,OAAoB;QACrB,IAAI,IAAI,CAAC,SAAS,CAAC,2CAAoB,CAAC,IAAI,CAAC,EAAE;YAC3C,IAAI,CAAC,GAAG,CAAC,2CAAoB,CAAC,IAAI,EAAE,oCAA+B,IAAI,CAAC,UAAU,QAAI,CAAC,CAAC;SAC3F;QACD,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;QACnD,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC;IACL,sBAAC;AAAD,CAAC,AAZD,CAA8B,iCAAiB,GAY9C"}

2
dist/lib/requestPipeline.js.map поставляемый
Просмотреть файл

@ -1 +1 @@
{"version":3,"file":"requestPipeline.js","sourceRoot":"","sources":["../../lib/requestPipeline.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,+FAA+F;;AAK/F,oCAAsC;AAKtC;IAIE,yBAAY,OAAsB,EAAE,cAA4B;QAC9D,IAAI,CAAC,OAAO,GAAG,OAAO,IAAI,EAAE,CAAC;QAC7B,IAAI,CAAC,cAAc,GAAG,cAAc,IAAI,EAAE,CAAC;IAC7C,CAAC;IAED,mCAAS,GAAT,UAAU,CAAa;QACrB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACrB,MAAM,CAAC;IACT,CAAC;IAED,gCAAM,GAAN;QACE,IAAM,IAAI,GAAG,IAAI,CAAC;QAClB,IAAI,QAAQ,GAAoB,EAAE,CAAC;QACnC,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;YACxC,IAAM,aAAa,GAAoB,EAAE,CAAC;YAC1C,IAAM,YAAY,GAAoB,EAAE,CAAC;YACzC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,C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AM,CAAC,KAAK,KAAK,UAAU,EAAE;oBACtD,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;iBAC9C;aACF,CAAA,kBAAkB;YACnB,uBAAuB;YACvB,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;YAChD,QAAQ,GAAG,aAAa,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;SAC/C;aAAM;YACL,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;SAC5C;QACD,IAAM,UAAU,GAAoB,UAAC,OAAoB;YACvD,IAAI,CAAC,OAAO,CAAC,OAAO;gBAAE,OAAO,CAAC,OAAO,GAAG,EAAE,CAAC;YAC3C,OAAO,KAAK,CAAC,2BAA2B,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAC9D,CAAC,CAAC;QACF,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,qCAAW,GAAX,UAAY,OAAoB;QAC9B,IAAI,IAAI,CAAC,cAAc,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC;QAClE,OAAO,KAAK,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;IACxC,CAAC;IACH,sBAAC;AAAD,CAAC,AA9CD,IA8CC;AA9CY,0CAAe"}

10
dist/lib/requestPolicy.js поставляемый
Просмотреть файл

@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
* A base class implementation of RequestPolicy.
*/
var BaseRequestPolicy = /** @class */ (function () {
function BaseRequestPolicy(nextPolicy, options) {
this.nextPolicy = nextPolicy;
this.options = options;
function BaseRequestPolicy(_nextPolicy, _options) {
this._nextPolicy = _nextPolicy;
this._options = _options;
}
/**
* Get whether or not a log with the provided log level should be logged.
@ -16,7 +16,7 @@ var BaseRequestPolicy = /** @class */ (function () {
* @returns Whether or not a log with the provided log level should be logged.
*/
BaseRequestPolicy.prototype.shouldLog = function (logLevel) {
return this.options.shouldLog(logLevel);
return this._options.shouldLog(logLevel);
};
/**
* Attempt to log the provided message to the provided logger. If no logger was provided or if
@ -25,7 +25,7 @@ var BaseRequestPolicy = /** @class */ (function () {
* @param message The message of this log.
*/
BaseRequestPolicy.prototype.log = function (logLevel, message) {
this.options.log(logLevel, message);
this._options.log(logLevel, message);
};
return BaseRequestPolicy;
}());

2
dist/lib/requestPolicy.js.map поставляемый
Просмотреть файл

@ -1 +1 @@
{"version":3,"file":"requestPolicy.js","sourceRoot":"","sources":["../../lib/requestPolicy.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,+FAA+F;;AAoB/F;;GAEG;AACH;IACI,2BAA+B,UAAyB,EAAmB,OAA6B;QAAzE,eAAU,GAAV,UAAU,CAAe;QAAmB,YAAO,GAAP,OAAO,CAAsB;IACxG,CAAC;IAID;;;;OAIG;IACO,qCAAS,GAAnB,UAAoB,QAA8B;QAC9C,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC5C,CAAC;IAED;;;;;OAKG;IACO,+BAAG,GAAb,UAAc,QAA8B,EAAE,OAAe;QACzD,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACxC,CAAC;IACL,wBAAC;AAAD,CAAC,AAxBD,IAwBC;AAxBqB,8CAAiB"}
{"version":3,"file":"requestPolicy.js","sourceRoot":"","sources":["../../lib/requestPolicy.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,+FAA+F;;AAoB/F;;GAEG;AACH;IACI,2BAA+B,WAA0B,EAAmB,QAA8B;QAA3E,gBAAW,GAAX,WAAW,CAAe;QAAmB,aAAQ,GAAR,QAAQ,CAAsB;IAC1G,CAAC;IAID;;;;OAIG;IACO,qCAAS,GAAnB,UAAoB,QAA8B;QAC9C,OAAO,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC7C,CAAC;IAED;;;;;OAKG;IACO,+BAAG,GAAb,UAAc,QAA8B,EAAE,OAAe;QACzD,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACzC,CAAC;IACL,wBAAC;AAAD,CAAC,AAxBD,IAwBC;AAxBqB,8CAAiB"}

2
dist/lib/requestPolicyOptions.js.map поставляемый
Просмотреть файл

@ -1 +1 @@
{"version":3,"file":"requestPolicyOptions.js","sourceRoot":"","sources":["../../lib/requestPolicyOptions.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,+FAA+F;;AAG/F,+DAA8D;AAE9D;;GAEG;AACH;IACI,8BAAoB,OAA4B;QAA5B,YAAO,GAAP,OAAO,CAAqB;IAChD,CAAC;IAED;;;;OAIG;IACI,wCAAS,GAAhB,UAAiB,QAA8B;QAC3C,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO;YACjB,QAAQ,KAAK,2CAAoB,CAAC,GAAG;YACrC,QAAQ,IAAI,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC;IACjD,CAAC;IAED;;;;;OAKG;IACI,kCAAG,GAAV,UAAW,QAA8B,EAAE,OAAe;QACtD,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YAC3C,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QACxC,CAAC;IACL,CAAC;IACL,2BAAC;AAAD,CAAC,AA1BD,IA0BC;AA1BY,oDAAoB"}
{"version":3,"file":"requestPolicyOptions.js","sourceRoot":"","sources":["../../lib/requestPolicyOptions.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,+FAA+F;;AAG/F,+DAA8D;AAE9D;;GAEG;AACH;IACI,8BAAoB,OAA4B;QAA5B,YAAO,GAAP,OAAO,CAAqB;IAChD,CAAC;IAED;;;;OAIG;IACI,wCAAS,GAAhB,UAAiB,QAA8B;QAC3C,OAAO,CAAC,CAAC,IAAI,CAAC,OAAO;YACjB,QAAQ,KAAK,2CAAoB,CAAC,GAAG;YACrC,QAAQ,IAAI,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC;IACjD,CAAC;IAED;;;;;OAKG;IACI,kCAAG,GAAV,UAAW,QAA8B,EAAE,OAAe;QACtD,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE;YAC1C,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;SACvC;IACL,CAAC;IACL,2BAAC;AAAD,CAAC,AA1BD,IA0BC;AA1BY,oDAAoB"}

2
dist/lib/serializer.js.map поставляемый

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

2
dist/lib/serviceClient.js.map поставляемый
Просмотреть файл

@ -1 +1 @@
{"version":3,"file":"serviceClient.js","sourceRoot":"","sources":["../../lib/serviceClient.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,+FAA+F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE/F,qDAAoD;AAGpD,uFAAsF;AACtF,uFAAsF;AACtF,2DAA0D;AAC1D,yDAAwD;AACxD,uEAAsE;AACtE,yEAAwE;AACxE,6CAAmE;AACnE,8CAA6C;AA4B7C;;;GAGG;AACH;IAcE;;;;;;OAMG;IACH,uBAAY,WAAsC,EAAE,OAA8B;QAChF,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QAED,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC;YAC5B,OAAO,CAAC,cAAc,GAAG,EAAE,CAAC;QAC9B,CAAC;QAED,EAAE,CAAC,CAAC,CAAC,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WAAW,GAAG,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;6BAC5C;yBACF;wBAAC,OAAO,KAAK,EAAE;4BACd,sBAAO,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,EAAC;yBAC9B;;;;wBAIqB,qBAAM,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAA;;wBAApD,iBAAiB,GAAG,SAAgC,CAAC;;;;wBAErD,sBAAO,OAAO,CAAC,MAAM,CAAC,KAAG,CAAC,EAAC;4BAE7B,sBAAO,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAC;;;;KAC3C;IACH,oBAAC;AAAD,CAAC,AArGD,IAqGC;AArGY,sCAAa"}

2
dist/lib/util/utils.js поставляемый
Просмотреть файл

@ -352,6 +352,8 @@ function dispatchRequest(options) {
options.headers["Content-Type"] = "multipart/form-data; boundary=" + requestForm_1.getBoundary();
}
}
// allow cross-origin cookies in browser
options.credentials = "include";
_c.label = 1;
case 1:
_c.trys.push([1, 3, , 4]);

2
dist/lib/util/utils.js.map поставляемый

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

2
dist/lib/webResource.js.map поставляемый

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -1 +1 @@
{"version":3,"file":"testClient.js","sourceRoot":"","sources":["../../../../../test/data/TestClient/lib/testClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,0BAA0B;AAC1B,wBAAwB;AACxB,0BAA0B;AAE1B,YAAY,CAAC;;;;;;;;;;;;AAEb,+CAAiD;AACjD,4CAA2C;AAE3C;;;;;;;;;;;;;;;GAeG;AAEH;IAAyB,8BAAoB;IAK3C,oBAAY,OAAe,EAAE,OAAqC;QAAlE,iBAYC;QAXC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;QAC3B,QAAA,kBAAM,SAAS,EAAE,OAAO,CAAC,SAAC;QAC1B,KAAI,CAAC,OAAO,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,gCAAU"}

2
dist/test/fakeHttpClient.js.map поставляемый
Просмотреть файл

@ -1 +1 @@
{"version":3,"file":"fakeHttpClient.js","sourceRoot":"","sources":["../../test/fakeHttpClient.ts"],"names":[],"mappings":";;AAMA;;;;GAIG;AACH;IACI,wBAA6B,YAA6D;QAA7D,iBAAY,GAAZ,YAAY,CAAiD;IAC1F,CAAC;IAED;;;;OAIG;IACI,6BAAI,GAAX,UAAY,OAAoB;QAC5B,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IACtC,CAAC;IACL,qBAAC;AAAD,CAAC,AAZD,IAYC;AAZY,wCAAc"}
{"version":3,"file":"fakeHttpClient.js","sourceRoot":"","sources":["../../test/fakeHttpClient.ts"],"names":[],"mappings":";;AAMA;;;;GAIG;AACH;IACI,wBAA6B,YAA6D;QAA7D,iBAAY,GAAZ,YAAY,CAAiD;IAC1F,CAAC;IAED;;;;OAIG;IACI,6BAAI,GAAX,UAAY,OAAoB;QAC5B,OAAO,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IACtC,CAAC;IACL,qBAAC;AAAD,CAAC,AAZD,IAYC;AAZY,wCAAc"}

42
dist/test/fetchHttpClientTests.js поставляемый
Просмотреть файл

@ -56,7 +56,6 @@ describe("fetchHttpClient", function () {
assert.deepStrictEqual(response.request, request);
assert.strictEqual(response.statusCode, 200);
assert(response.headers);
assert.strictEqual(response.headers.get("accept-ranges"), "bytes");
assert.strictEqual(response.headers.get("connection"), "close");
assert.strictEqual(response.headers.get("content-encoding"), "gzip");
assert.strictEqual(response.headers.get("content-length"), "606");
@ -71,5 +70,46 @@ describe("fetchHttpClient", function () {
}
});
}); });
it("should throw for awaited 404", function () { return __awaiter(_this, void 0, void 0, function () {
var request, httpClient, error_1;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
request = new httpRequest_1.HttpRequest(httpMethod_1.HttpMethod.GET, "http://www.notanexample.coms", {});
httpClient = new fetchHttpClient_1.FetchHttpClient();
_a.label = 1;
case 1:
_a.trys.push([1, 3, , 4]);
return [4 /*yield*/, httpClient.send(request)];
case 2:
_a.sent();
assert.fail("Expected error to be thrown.");
return [3 /*break*/, 4];
case 3:
error_1 = _a.sent();
assert.strictEqual(error_1.name, "FetchError");
assert.strictEqual(error_1.code, "ENOTFOUND");
assert.strictEqual(error_1.message, "request to http://www.notanexample.coms failed, reason: getaddrinfo ENOTFOUND www.notanexample.coms www.notanexample.coms:80");
return [3 /*break*/, 4];
case 4: return [2 /*return*/];
}
});
}); });
it("should reject for promised 404", function () { return __awaiter(_this, void 0, void 0, function () {
var request, httpClient;
return __generator(this, function (_a) {
request = new httpRequest_1.HttpRequest(httpMethod_1.HttpMethod.GET, "http://www.notanexample.coms", {});
httpClient = new fetchHttpClient_1.FetchHttpClient();
return [2 /*return*/, httpClient.send(request)
.then(function () {
assert.fail("Expected error to be thrown.");
})
.catch(function (error) {
assert.strictEqual(error.name, "FetchError");
assert.strictEqual(error.code, "ENOTFOUND");
assert.strictEqual(error.message, "request to http://www.notanexample.coms failed, reason: getaddrinfo ENOTFOUND www.notanexample.coms www.notanexample.coms:80");
})];
});
}); });
});
//# sourceMappingURL=fetchHttpClientTests.js.map

2
dist/test/fetchHttpClientTests.js.map поставляемый
Просмотреть файл

@ -1 +1 @@
{"version":3,"file":"fetchHttpClientTests.js","sourceRoot":"","sources":["../../test/fetchHttpClientTests.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,iBA4EG;;AA9EH,4DAA4D;AAC5D,+FAA+F;AAC/F,+BAAiC;AACjC,0DAAyD;AACzD,gDAA+C;AAC/C,kDAAiD;AAGjD,QAAQ,CAAC,iBAAiB,EAAE;IACxB,EAAE,CAAC,2BAA2B,EAAE;;;;;oBACtB,OAAO,GAAG,IAAI,yBAAW,CAAC,uBAAU,CAAC,GAAG,EAAE,wBAAwB,EAAE,EAAE,CAAC,CAAC;oBACxE,UAAU,GAAG,IAAI,iCAAe,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C5C,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,OAAO,EAAE,8HAA8H,CAAC,CAAC;gBACtK,CAAC,CAAC,EAAC;;SACV,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}

2
dist/test/httpPipelineTests.js поставляемый
Просмотреть файл

@ -126,7 +126,7 @@ describe("HttpPipeline", function () {
var response;
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, this.nextPolicy.send(request)];
case 0: return [4 /*yield*/, this._nextPolicy.send(request)];
case 1:
response = _a.sent();
response.headers.set("My-Header", "My-Value");

2
dist/test/httpPipelineTests.js.map поставляемый
Просмотреть файл

@ -1 +1 @@
{"version":3,"file":"httpPipelineTests.js","sourceRoot":"","sources":["../../test/httpPipelineTests.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,iBA4EG;;AA9EH,4DAA4D;AAC5D,+FAA+F;AAC/F,+BAAiC;AAEjC,gDAA+C;AAC/C,oDAAmD;AACnD,kDAAiD;AAEjD,mEAAkE;AAClE,sDAAyD;AACzD,mDAAkD;AAClD,+DAA8D;AAE9D,QAAQ,CAAC,cAAc,EAAE;IACrB,EAAE,CAAC,4DAA4D,EAAE;;;;;oBACvD,UAAU,GAAe,IAAI,+BAAc,CAAC,UAAC,OAAoB;wBACnE,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,2CAAoB,CAAC,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC;oBAChF,CAAC,CAAC,CAAC;oBAEG,YAAY,GAAG,IAAI,2BAAY,CAAC,EAAE,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC,CAAC;oBAEhE,WAAW,GAAG,IAAI,yBAAW,CAAC,uBAAU,CAAC,GAAG,EAAE,wBAAwB,EAAE,EAAE,CAAC,CAAC;oBACnD,qBAAM,YAAY,CAAC,IAAI,CAAC,WAAW,CAAC,EAAA;;o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AAC;YACvH,MAAM,CAAC,WAAW,CAAC,WAAW,CAAC,UAAU,EAAE,uBAAU,CAAC,IAAI,CAAC,CAAC;YAC5D,MAAM,CAAC,WAAW,CAAC,WAAW,CAAC,GAAG,EAAE,iBAAiB,CAAC,CAAC;YACvD,MAAM,CAAC,eAAe,CAAC,WAAW,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,EAAC,gBAAgB,EAAE,GAAG,EAAC,CAAC,CAAC;YAC9E,MAAM,CAAC,WAAW,CAAC,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAClD,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}

2
dist/test/inMemoryHttpPipelineLogger.js.map поставляемый
Просмотреть файл

@ -1 +1 @@
{"version":3,"file":"inMemoryHttpPipelineLogger.js","sourceRoot":"","sources":["../../test/inMemoryHttpPipelineLogger.ts"],"names":[],"mappings":";;AAAA,4DAA4D;AAC5D,+FAA+F;AAC/F,oEAAmE;AAGnE;;GAEG;AACH;IAGI,oCAAoB,gBAAkE;QAAlE,iCAAA,EAAA,mBAAyC,2CAAoB,CAAC,IAAI;QAAlE,qBAAgB,GAAhB,gBAAgB,CAAkD;QAClF,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;IACpB,CAAC;IAKD,sBAAW,4CAAI;QAHf;;WAEG;aACH;YACI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;;;OAAA;IAED,sBAAW,uDAAe;aAA1B;YACI,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC;QACjC,CAAC;aAED,UAA2B,eAAqC;YAC5D,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;QAC5C,CAAC;;;OAJA;IAMM,wCAAG,GAAV,UAAW,QAA8B,EAAE,OAAe;QACtD,IAAI,CAAC,KAAK,CAAC,IAAI,CAAI,2CAAoB,CAAC,QAAQ,CAAC,UAAK,OAAS,CAAC,CAAC;IACrE,CAAC;IACL,iCAAC;AAAD,CAAC,AAzBD,IAyBC;AAzBY,gEAA0B"}
{"version":3,"file":"inMemoryHttpPipelineLogger.js","sourceRoot":"","sources":["../../test/inMemoryHttpPipelineLogger.ts"],"names":[],"mappings":";;AAAA,4DAA4D;AAC5D,+FAA+F;AAC/F,oEAAmE;AAGnE;;GAEG;AACH;IAGI,oCAAoB,gBAAkE;QAAlE,iCAAA,EAAA,mBAAyC,2CAAoB,CAAC,IAAI;QAAlE,qBAAgB,GAAhB,gBAAgB,CAAkD;QAClF,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;IACpB,CAAC;IAKD,sBAAW,4CAAI;QAHf;;WAEG;aACH;YACI,OAAO,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;;;OAAA;IAED,sBAAW,uDAAe;aAA1B;YACI,OAAO,IAAI,CAAC,gBAAgB,CAAC;QACjC,CAAC;aAED,UAA2B,eAAqC;YAC5D,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;QAC5C,CAAC;;;OAJA;IAMM,wCAAG,GAAV,UAAW,QAA8B,EAAE,OAAe;QACtD,IAAI,CAAC,KAAK,CAAC,IAAI,CAAI,2CAAoB,CAAC,QAAQ,CAAC,UAAK,OAAS,CAAC,CAAC;IACrE,CAAC;IACL,iCAAC;AAAD,CAAC,AAzBD,IAyBC;AAzBY,gEAA0B"}

2
dist/test/inMemoryHttpResponse.js.map поставляемый
Просмотреть файл

@ -1 +1 @@
{"version":3,"file":"inMemoryHttpResponse.js","sourceRoot":"","sources":["../../test/inMemoryHttpResponse.ts"],"names":[],"mappings":";;AAAA,4DAA4D;AAC5D,+FAA+F;AAC/F,kDAAiE;AAIjE;IAGI,8BAAoB,QAAqB,EAAU,WAAmB,EAAE,OAAqC,EAAU,SAAkB;QAArH,aAAQ,GAAR,QAAQ,CAAa;QAAU,gBAAW,GAAX,WAAW,CAAQ;QAAiD,cAAS,GAAT,SAAS,CAAS;QACrI,IAAI,CAAC,QAAQ,GAAG,CAAC,O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C,QAAQ,CAAC;QACzB,CAAC;;;OAAA;IAED,sBAAW,4CAAU;aAArB;YACI,OAAO,IAAI,CAAC,WAAW,CAAC;QAC5B,CAAC;;;OAAA;IAED,sBAAW,yCAAO;aAAlB;YACI,OAAO,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;;;OAAA;IAED,uCAAQ,GAAR;QACI,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAC3C,CAAC;IACD,+CAAgB,GAAhB;QACI,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IACpF,CAAC;IACL,2BAAC;AAAD,CAAC,AAzBD,IAyBC;AAzBY,oDAAoB"}

Просмотреть файл

@ -1 +1 @@
{"version":3,"file":"userAgentPolicyTests.js","sourceRoot":"","sources":["../../../test/policies/userAgentPolicyTests.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,iBA2BG;;AA7BH,4DAA4D;AAC5D,+FAA+F;AAC/F,+BAAiC;AACjC,mDAAkD;AAClD,qDAAoD;AAEpD,sEAAqE;AAGrE,uEAAsE;AACtE,gEAA+D;AAE/D,QAAQ,CAAC,iBAAiB,EAAE;IACxB,EAAE,CAAC,2EAA2E,EAAE;;;;;oBACtE,aAAa,GAAyB,iCAAe,CAAC,sBAAsB,CAAC,CAAC;oBAE9E,UAAU,GAAkB;wBAC9B,IAAI,EAAE,UAAC,OAAoB;4BACvB,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,2CAAoB,CAAC,OAAO,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC;wBACvE,CAAC;qBACJ,CAAA;oBAEK,MAAM,GAAkB,aAAa,CAAC,UAAU,EAAE,IAAI,2CAAoB,EAAE,CAAC,CAAC;oBAC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AAW,CAAC,uBAAU,CAAC,GAAG,EAAE,kBAAkB,EAAE,EAAE,CAAC,CAAC;oBACzC,qBAAM,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,EAAA;;oBAAnD,QAAQ,GAAiB,SAA0B;oBAEzD,MAAM,CAAC,eAAe,CAAC,OAAO,EAAE,IAAI,yBAAW,CAAC,uBAAU,CAAC,GAAG,EAAE,kBAAkB,EAAE,EAAC,YAAY,EAAE,sBAAsB,EAAC,CAAC,CAAC,CAAC;oBAC7H,MAAM,CAAC,eAAe,CAAC,QAAQ,CAAC,OAAO,EAAE,IAAI,yBAAW,CAAC,uBAAU,CAAC,GAAG,EAAE,kBAAkB,EAAE,EAAC,YAAY,EAAE,sBAAsB,EAAC,CAAC,CAAC,CAAC;;;;SACzI,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}

2
dist/test/serializationTests.js.map поставляемый

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -5,7 +5,7 @@ import { HttpHeaders } from "./httpHeaders";
import { HttpRequest } from "./httpRequest";
import { HttpResponse } from "./httpResponse";
type FetchMethod = (url: string, options: RequestInit) => Response;
type FetchMethod = (url: string, options: RequestInit) => Promise<Response>;
/**
* The cached fetch method that will be used to send HTTP requests.
@ -17,34 +17,24 @@ const fetch: FetchMethod = require("fetch-ponyfill")({ useCookie: true }).fetch;
*/
export class FetchHttpClient implements HttpClient {
public async send(request: HttpRequest): Promise<HttpResponse> {
let result: Promise<HttpResponse>;
const fetchRequestOptions: RequestInit = {
method: request.httpMethod,
headers: request.headers.toJson(),
body: request.body
};
try {
const fetchRequestOptions: RequestInit = {
method: request.httpMethod,
headers: request.headers.toJson(),
body: request.body
};
const fetchResponse: Response = await fetch(request.url, fetchRequestOptions);
const fetchResponse: Response = await fetch(request.url, fetchRequestOptions);
const responseHeaders = new HttpHeaders();
const fetchResponseHeaders: Headers = fetchResponse.headers;
fetchResponseHeaders.forEach((headerValue: string, headerName: string) => { responseHeaders.set(headerName, headerValue); });
const responseHeaders = new HttpHeaders();
const fetchResponseHeaders: Headers = fetchResponse.headers;
fetchResponseHeaders.forEach((headerValue: string, headerName: string) => { responseHeaders.set(headerName, headerValue); });
const response: HttpResponse = {
request: request,
statusCode: fetchResponse.status,
headers: responseHeaders,
textBody: () => fetchResponse.text(),
deserializedBody: () => fetchResponse.json()
};
result = Promise.resolve(response);
} catch (err) {
result = Promise.reject(err);
}
return result;
return {
request: request,
statusCode: fetchResponse.status,
headers: responseHeaders,
textBody: async () => await fetchResponse.text(),
deserializedBody: async () => await fetchResponse.json()
};
}
}

Просмотреть файл

@ -3,8 +3,7 @@
import { BaseFilter } from "./baseFilter";
import { HttpOperationResponse } from "../httpOperationResponse";
import * as utils from "../util/utils";
const parse = require("url-parse");
import * as parse from "url-parse";
export class RedirectFilter extends BaseFilter {
@ -21,13 +20,9 @@ export class RedirectFilter extends BaseFilter {
if (response && response.headers && response.headers.get("location") &&
(response.status === 300 || response.status === 307 || (response.status === 303 && request.method === "POST")) &&
(!this.maximumRetries || currentRetries < this.maximumRetries)) {
if (parse(response.headers.get("location")).hostname) {
request.url = response.headers.get("location") as string;
} else {
const urlObject = parse(request.url);
urlObject.set("pathname", response.headers.get("location") as string);
request.url = urlObject.href;
}
request.url = parse(response.headers.get("location")!, parse(request.url)).href;
// POST request with Status code 303 should be converted into a
// redirected GET request if the redirect url is present in the location header
if (response.status === 303) {

Просмотреть файл

@ -32,10 +32,10 @@ export type RawHttpHeaders = { [headerName: string]: string };
* A collection of HTTP header key/value pairs.
*/
export class HttpHeaders {
private readonly headersMap: { [headerKey: string]: HttpHeader };
private readonly _headersMap: { [headerKey: string]: HttpHeader };
constructor(rawHeaders?: RawHttpHeaders) {
this.headersMap = {};
this._headersMap = {};
if (rawHeaders) {
for (const headerName in rawHeaders) {
this.set(headerName, rawHeaders[headerName]);
@ -50,7 +50,7 @@ export class HttpHeaders {
* @param headerValue The value of the header to set.
*/
public set(headerName: string, headerValue: string | number): void {
this.headersMap[getHeaderKey(headerName)] = { name: headerName, value: headerValue.toString() };
this._headersMap[getHeaderKey(headerName)] = { name: headerName, value: headerValue.toString() };
}
/**
@ -59,7 +59,7 @@ export class HttpHeaders {
* @param headerName The name of the header.
*/
public get(headerName: string): string | undefined {
const header: HttpHeader = this.headersMap[getHeaderKey(headerName)];
const header: HttpHeader = this._headersMap[getHeaderKey(headerName)];
return !header ? undefined : header.value;
}
@ -68,8 +68,8 @@ export class HttpHeaders {
*/
public headers(): HttpHeader[] {
const headers: HttpHeader[] = [];
for (const headerKey in this.headersMap) {
headers.push(this.headersMap[headerKey]);
for (const headerKey in this._headersMap) {
headers.push(this._headersMap[headerKey]);
}
return headers;
}

Просмотреть файл

@ -23,20 +23,20 @@ function getDefaultHttpClient(): HttpClient {
* be applied to a HTTP response when it is received.
*/
export class HttpPipeline {
private readonly httpClient: HttpClient;
private readonly requestPolicyOptions: RequestPolicyOptions;
private readonly _httpClient: HttpClient;
private readonly _requestPolicyOptions: RequestPolicyOptions;
constructor(private readonly requestPolicyFactories: RequestPolicyFactory[], private readonly options: HttpPipelineOptions) {
if (!this.options) {
this.options = {};
constructor(private readonly _requestPolicyFactories: RequestPolicyFactory[], private readonly _httpPipelineOptions: HttpPipelineOptions) {
if (!this._httpPipelineOptions) {
this._httpPipelineOptions = {};
}
if (!this.options.httpClient) {
this.options.httpClient = getDefaultHttpClient();
if (!this._httpPipelineOptions.httpClient) {
this._httpPipelineOptions.httpClient = getDefaultHttpClient();
}
this.httpClient = this.options.httpClient;
this.requestPolicyOptions = new RequestPolicyOptions(this.options.pipelineLogger);
this._httpClient = this._httpPipelineOptions.httpClient;
this._requestPolicyOptions = new RequestPolicyOptions(this._httpPipelineOptions.pipelineLogger);
}
/**
@ -45,12 +45,12 @@ export class HttpPipeline {
* @return A Promise that resolves to the HttpResponse from the targeted server.
*/
public send(request: HttpRequest): Promise<HttpResponse> {
let requestPolicyChainHead: RequestPolicy = this.httpClient;
if (this.requestPolicyFactories) {
const requestPolicyFactoriesLength: number = this.requestPolicyFactories.length;
let requestPolicyChainHead: RequestPolicy = this._httpClient;
if (this._requestPolicyFactories) {
const requestPolicyFactoriesLength: number = this._requestPolicyFactories.length;
for (let i = requestPolicyFactoriesLength - 1; i >= 0; --i) {
const requestPolicyFactory: RequestPolicyFactory = this.requestPolicyFactories[i];
requestPolicyChainHead = requestPolicyFactory(requestPolicyChainHead, this.requestPolicyOptions);
const requestPolicyFactory: RequestPolicyFactory = this._requestPolicyFactories[i];
requestPolicyChainHead = requestPolicyFactory(requestPolicyChainHead, this._requestPolicyOptions);
}
}
return requestPolicyChainHead.send(request);

Просмотреть файл

@ -18,15 +18,15 @@ export function userAgentPolicy(userAgent: string): RequestPolicyFactory {
}
class UserAgentPolicy extends BaseRequestPolicy {
constructor(private readonly userAgent: string, nextPolicy: RequestPolicy, options: RequestPolicyOptions) {
constructor(private readonly _userAgent: string, nextPolicy: RequestPolicy, options: RequestPolicyOptions) {
super(nextPolicy, options);
}
send(request: HttpRequest): Promise<HttpResponse> {
if (this.shouldLog(HttpPipelineLogLevel.INFO)) {
this.log(HttpPipelineLogLevel.INFO, `Set "User-Agent" header to "${this.userAgent}".`);
this.log(HttpPipelineLogLevel.INFO, `Set "User-Agent" header to "${this._userAgent}".`);
}
request.headers.set("User-Agent", this.userAgent);
return this.nextPolicy.send(request);
request.headers.set("User-Agent", this._userAgent);
return this._nextPolicy.send(request);
}
}

Просмотреть файл

@ -23,7 +23,7 @@ export interface RequestPolicy {
* A base class implementation of RequestPolicy.
*/
export abstract class BaseRequestPolicy implements RequestPolicy {
constructor(protected readonly nextPolicy: RequestPolicy, private readonly options: RequestPolicyOptions) {
constructor(protected readonly _nextPolicy: RequestPolicy, private readonly _options: RequestPolicyOptions) {
}
public abstract send(request: HttpRequest): Promise<HttpResponse>;
@ -34,7 +34,7 @@ export abstract class BaseRequestPolicy implements RequestPolicy {
* @returns Whether or not a log with the provided log level should be logged.
*/
protected shouldLog(logLevel: HttpPipelineLogLevel): boolean {
return this.options.shouldLog(logLevel);
return this._options.shouldLog(logLevel);
}
/**
@ -44,6 +44,6 @@ export abstract class BaseRequestPolicy implements RequestPolicy {
* @param message The message of this log.
*/
protected log(logLevel: HttpPipelineLogLevel, message: string): void {
this.options.log(logLevel, message);
this._options.log(logLevel, message);
}
}

Просмотреть файл

@ -323,6 +323,10 @@ export async function dispatchRequest(options: WebResource): Promise<HttpOperati
options.headers["Content-Type"] = `multipart/form-data; boundary=${requestForm.getBoundary()}`;
}
}
// allow cross-origin cookies in browser
(options as any).credentials = "include";
let res: Response;
try {
res = await myFetch(options.url, options);

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

2
msRestBundle.min.js поставляемый

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

703
package-lock.json сгенерированный

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -5,7 +5,7 @@
"email": "azsdkteam@microsoft.com",
"url": "https://github.com/Azure/ms-rest-js"
},
"version": "0.3.0",
"version": "0.3.1",
"description": "Isomorphic client Runtime for Typescript/node.js/browser javascript client libraries generated using AutoRest",
"tags": [
"isomorphic",
@ -47,11 +47,12 @@
"devDependencies": {
"@types/mocha": "^2.2.40",
"@types/should": "^8.1.30",
"@types/url-parse": "^1.1.0",
"@types/xml2js": "^0.4.2",
"mocha": "^3.5.3",
"should": "5.2.0",
"source-map-support": "^0.5.4",
"ts-loader": "^2.3.7",
"ts-node": "^5.0.1",
"tslint": "^5.7.0",
"typescript": "^2.7.2",
"uglify-es": "^3.1.0",
@ -67,10 +68,9 @@
},
"scripts": {
"tsc": "tsc -p tsconfig.json",
"test": "npm run tsc && npm -s run-script tslint && npm -s run-script unit",
"unit": "mocha --require source-map-support/register -t 50000 ./dist/test",
"test": "mocha -r ts-node/register -t 50000 ./test/**/*.ts",
"uglify": "node node_modules/uglify-es/bin/uglifyjs --source-map -c -m -o msRestBundle.min.js msRestBundle.js",
"build": "npm -s run-script tsc && webpack && npm -s run-script uglify",
"build": "npm run tsc && npm run tslint && webpack && npm run uglify",
"tslint": "tslint -p . -c tslint.json --exclude test/**/*.ts"
}
}

Просмотреть файл

@ -15,7 +15,6 @@ describe("fetchHttpClient", () => {
assert.deepStrictEqual(response.request, request);
assert.strictEqual(response.statusCode, 200);
assert(response.headers);
assert.strictEqual(response.headers.get("accept-ranges"), "bytes");
assert.strictEqual(response.headers.get("connection"), "close");
assert.strictEqual(response.headers.get("content-encoding"), "gzip");
assert.strictEqual(response.headers.get("content-length"), "606");
@ -76,4 +75,33 @@ describe("fetchHttpClient", () => {
`;
assert.strictEqual(responseBody, expectedResponseBody);
});
it("should throw for awaited 404", async () => {
const request = new HttpRequest(HttpMethod.GET, "http://www.notanexample.coms", {});
const httpClient = new FetchHttpClient();
try {
await httpClient.send(request)
assert.fail("Expected error to be thrown.");
} catch (error) {
assert.strictEqual(error.name, "FetchError");
assert.strictEqual(error.code, "ENOTFOUND");
assert.strictEqual(error.message, "request to http://www.notanexample.coms failed, reason: getaddrinfo ENOTFOUND www.notanexample.coms www.notanexample.coms:80");
}
});
it("should reject for promised 404", async () => {
const request = new HttpRequest(HttpMethod.GET, "http://www.notanexample.coms", {});
const httpClient = new FetchHttpClient();
return httpClient.send(request)
.then(() => {
assert.fail("Expected error to be thrown.");
})
.catch((error: any) => {
assert.strictEqual(error.name, "FetchError");
assert.strictEqual(error.code, "ENOTFOUND");
assert.strictEqual(error.message, "request to http://www.notanexample.coms failed, reason: getaddrinfo ENOTFOUND www.notanexample.coms www.notanexample.coms:80");
});
});
});

Просмотреть файл

@ -57,7 +57,7 @@ describe("HttpPipeline", () => {
class ResponseModifyingRequestPolicy extends BaseRequestPolicy {
public async send(request: HttpRequest): Promise<HttpResponse> {
const response: HttpResponse = await this.nextPolicy.send(request);
const response: HttpResponse = await this._nextPolicy.send(request);
response.headers.set("My-Header", "My-Value");
return response;
}

2
typings/lib/httpHeaders.d.ts поставляемый
Просмотреть файл

@ -21,7 +21,7 @@ export declare type RawHttpHeaders = {
* A collection of HTTP header key/value pairs.
*/
export declare class HttpHeaders {
private readonly headersMap;
private readonly _headersMap;
constructor(rawHeaders?: RawHttpHeaders);
/**
* Set a header in this collection with the provided name and value. The name is

10
typings/lib/httpPipeline.d.ts поставляемый
Просмотреть файл

@ -7,11 +7,11 @@ import { RequestPolicyFactory } from "./requestPolicyFactory";
* be applied to a HTTP response when it is received.
*/
export declare class HttpPipeline {
private readonly requestPolicyFactories;
private readonly options;
private readonly httpClient;
private readonly requestPolicyOptions;
constructor(requestPolicyFactories: RequestPolicyFactory[], options: HttpPipelineOptions);
private readonly _requestPolicyFactories;
private readonly _httpPipelineOptions;
private readonly _httpClient;
private readonly _requestPolicyOptions;
constructor(_requestPolicyFactories: RequestPolicyFactory[], _httpPipelineOptions: HttpPipelineOptions);
/**
* Send the provided HttpRequest request.
* @param request The HTTP request to send.

6
typings/lib/requestPolicy.d.ts поставляемый
Просмотреть файл

@ -18,9 +18,9 @@ export interface RequestPolicy {
* A base class implementation of RequestPolicy.
*/
export declare abstract class BaseRequestPolicy implements RequestPolicy {
protected readonly nextPolicy: RequestPolicy;
private readonly options;
constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions);
protected readonly _nextPolicy: RequestPolicy;
private readonly _options;
constructor(_nextPolicy: RequestPolicy, _options: RequestPolicyOptions);
abstract send(request: HttpRequest): Promise<HttpResponse>;
/**
* Get whether or not a log with the provided log level should be logged.

8
typings/lib/serializer.d.ts поставляемый
Просмотреть файл

@ -122,18 +122,18 @@ export interface UrlParameterValue {
}
export declare function serializeObject(toSerialize: any): any;
export declare const MapperType: {
Composite: "Composite";
Enum: "Enum";
Sequence: "Sequence";
Dictionary: "Dictionary";
Base64Url: "Base64Url";
Boolean: "Boolean";
ByteArray: "ByteArray";
Composite: "Composite";
Date: "Date";
DateTime: "DateTime";
DateTimeRfc1123: "DateTimeRfc1123";
Dictionary: "Dictionary";
Enum: "Enum";
Number: "Number";
Object: "Object";
Sequence: "Sequence";
String: "String";
Stream: "Stream";
TimeSpan: "TimeSpan";