Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A light weight nodejs request library with proxy support. Intended to be used by VSCode extensions

License

NotificationsYou must be signed in to change notification settings

microsoft/node-request-light

Repository files navigation

npm PackageNPM DownloadsBuild StatusLicense: MIT

A lightweight request library intended to be used by VSCode extensions.

  • NodeJS and browser main entry points
  • proxy support: Useconfigure orHTTP_PROXY andHTTPS_PROXY env variables to configure the HTTP proxy addresses.
import{xhr,XHRResponse,getErrorStatusDescription}from'request-light';constheaders={'Accept-Encoding':'gzip, deflate'};returnxhr({url:url,followRedirects:5, headers}).then(response=>{returnresponse.responseText;},(error:XHRResponse)=>{thrownewError(error.responseText||getErrorStatusDescription(error.status)||error.toString());});

About

A light weight nodejs request library with proxy support. Intended to be used by VSCode extensions

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors12


[8]ページ先頭

©2009-2026 Movatter.jp