Socket
Socket
Sign inDemoInstall

@azure/core-http

Package Overview
Dependencies
30
Maintainers
2
Versions
300
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azure/core-http

Isomorphic client Runtime for Typescript/node.js/browser javascript client libraries generated using AutoRest


Version published
Maintainers
2
Weekly downloads
1,952,746
decreased by-6.02%

Weekly downloads

Readme

Source

Azure Core HTTP client library for JavaScript

This is the core HTTP pipeline for Azure SDK JavaScript libraries which work in the browser and Node.js. This library is primarily intended to be used in code generated by AutoRest and autorest.typescript.

Getting started

Currently supported environments

See our support policy for more details.

Installation

This package is primarily used in generated code and not meant to be consumed directly by end users.

Key concepts

You can find an explanation of how this repository's code works by going to our architecture overview.

Examples

Examples can be found in the samples folder.

Next steps

  • Build this library (core-http). For more information on how to build project in this repo, please refer to the Contributing Guide.

  • The code in samples\node-sample.ts shows how to create a ServiceClient instance with a test TokenCredential implementation and use the client instance to perform a GET operation from the Azure management service endpoint for subscriptions. To run the code, first obtain an access token to the Azure management service.

One easy way to get an access token is using Azure CLI

  1. Sign in
az login
  1. Select the subscription to use
az account set -s <subscription id>
  1. Obtain an access token
az account get-access-token --resource=https://management.azure.com

NodeJS

  • Set values of subscriptionId and token variable in samples/node-sample.ts

  • Change directory to samples folder, compile the TypeScript code, then run the sample

cd samples
tsc node-sample.ts
node node-sample.js

Browser

Troubleshooting

If you run into issues while using this library, please feel free to file an issue.

Contributing

If you'd like to contribute to this library, please read the contributing guide to learn more about how to build and test the code.

Impressions

Keywords

FAQs

Last updated on 14 Nov 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc