Socket
Socket
Sign inDemoInstall

@aws-sdk/fetch-http-handler

Package Overview
Dependencies
5
Maintainers
7
Versions
131
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/fetch-http-handler


Version published
Maintainers
7
Created

Package description

What is @aws-sdk/fetch-http-handler?

The @aws-sdk/fetch-http-handler npm package is a module that provides a way to send HTTP requests using the Fetch API. It is part of the AWS SDK for JavaScript (v3) and is used internally by the SDK to send requests to AWS services. It can be used directly to make HTTP requests in environments where the Fetch API is available, such as modern web browsers and Node.js (with a polyfill).

What are @aws-sdk/fetch-http-handler's main functionalities?

Sending HTTP requests

This feature allows you to send HTTP requests using the Fetch API. The code sample demonstrates how to create a new instance of FetchHttpHandler and use it to send a GET request to a specified URL.

{"import { FetchHttpHandler } from '@aws-sdk/fetch-http-handler';
const httpHandler = new FetchHttpHandler();
const requestOptions = {
  method: 'GET',
  headers: {
    'Content-Type': 'application/json'
  }
};
httpHandler.handle({
  request: new Request('https://example.com', requestOptions),
  input: {},
  abortSignal: null
}).then(response => {
  // Handle the response
});"}

Other packages similar to @aws-sdk/fetch-http-handler

Changelog

Source

3.23.0 (2021-07-23)

Bug Fixes

  • client-sts: duplicate stripInternal entry in tsconfig (#2545) (e7bcbbc)
  • clients: allow undefined configuration (#2617) (a004d15)
  • smithy-client: export type explicitly (#2598) (e643735), closes #2597
  • bump up tslib to 2.3.0 (#2601) (7040faa)

Features

  • clients: change runtime config from constant to provider functions (#2574) (5eca565)

Readme

Source

@aws-sdk/fetch-http-handler

NPM version NPM downloads

FAQs

Last updated on 23 Jul 2021

Did you know?

Socket

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc