# node-request-light **Repository Path**: mirrors_microsoft/node-request-light ## Basic Information - **Project Name**: node-request-light - **Description**: A light weight nodejs request library with proxy support. Intended to be used by VSCode extensions - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2026-10-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # request-light [![npm Package](https://img.shields.io/npm/v/request-light.svg?style=flat-square)](https://www.npmjs.org/package/request-light) [![NPM Downloads](https://img.shields.io/npm/dm/request-light.svg)](https://npmjs.org/package/request-light) [![Build Status](https://github.com/microsoft/node-request-light/workflows/Tests/badge.svg)](https://github.com/microsoft/node-request-light/workflows/Tests) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) A lightweight request library intended to be used by VSCode extensions. - NodeJS and browser main entry points - proxy support: Use `configure` or `HTTP_PROXY` and `HTTPS_PROXY` env variables to configure the HTTP proxy addresses. ```ts import { xhr, XHRResponse, getErrorStatusDescription } from 'request-light'; const headers = { 'Accept-Encoding': 'gzip, deflate' }; return xhr({ url: url, followRedirects: 5, headers }).then(response => { return response.responseText; }, (error: XHRResponse) => { throw new Error(error.responseText || getErrorStatusDescription(error.status) || error.toString()); }); ```