MCPcopy Create free account
hub / github.com/Azure/powershell / createHttpClient

Method createHttpClient

lib/index.js:516–522  ·  view source on GitHub ↗
(allowRetry = true, maxRetry = 10)

Source from the content-addressed store, hash-verified

514const core_1 = __nccwpck_require__(7484);
515class OidcClient {
516 static createHttpClient(allowRetry = true, maxRetry = 10) {
517 const requestOptions = {
518 allowRetries: allowRetry,
519 maxRetries: maxRetry
520 };
521 return new http_client_1.HttpClient('actions/oidc-client', [new auth_1.BearerCredentialHandler(OidcClient.getRequestToken())], requestOptions);
522 }
523 static getRequestToken() {
524 const token = process.env['ACTIONS_ID_TOKEN_REQUEST_TOKEN'];
525 if (!token) {

Callers 1

getCallMethod · 0.80

Calls 1

getRequestTokenMethod · 0.80

Tested by

no test coverage detected