How to use the @aws-sdk/fetch-http-handler.FetchHttpHandler function in @aws-sdk/fetch-http-handler

To help you get started, we’ve selected a few @aws-sdk/fetch-http-handler examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aws / aws-sdk-js-v3 / clients / client-rds-data / runtimeConfig.browser.ts View on Github external
import { invalidFunction } from "@aws-sdk/invalid-dependency";
import { Sha256 } from "@aws-crypto/sha256-browser";
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
import { parseUrl } from "@aws-sdk/url-parser-browser";
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
import { streamCollector } from "@aws-sdk/stream-collector-browser";
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
import { name, version } from "./package.json";
import { ClientDefaults } from "./RDSDataClient";
import { ClientSharedValues } from "./runtimeConfig.shared";

export const ClientDefaultValues: Required = {
  ...ClientSharedValues,
  requestHandler: new FetchHttpHandler(),
  sha256: Sha256,
  urlParser: parseUrl,
  bodyLengthChecker: calculateBodyLength,
  streamCollector,
  base64Decoder: fromBase64,
  base64Encoder: toBase64,
  utf8Decoder: fromUtf8,
  utf8Encoder: toUtf8,
  defaultUserAgent: defaultUserAgent(name, version),
  signingName: "rds-data",
  credentialDefaultProvider: invalidFunction("Credential is missing") as any,
  regionDefaultProvider: invalidFunction("Region is missing") as any,
};
github aws / aws-sdk-js-v3 / clients / client-transcribe-streaming / runtimeConfig.browser.ts View on Github external
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
import { streamCollector } from "@aws-sdk/stream-collector-browser";
import { JsonProtocol } from "@aws-sdk/protocol-json";
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
import { name, version } from "./package.json";
import { TranscribeStreamingRuntimeDependencies } from "./TranscribeStreamingClient";

export const TranscribeStreamingRuntimeConfiguration: Required<
  TranscribeStreamingRuntimeDependencies
> = {
  protocolDefaultProvider: handler => new JsonProtocol(handler),
  signingName: "transcribestreaming",
  service: "transcribestreaming",
  httpHandler: new FetchHttpHandler(),
  sha256: Sha256,
  credentialDefaultProvider: invalidFunction("Credential is missing") as any,
  regionDefaultProvider: invalidFunction("Region is missing") as any,
  urlParser: parseUrl,
  bodyLengthChecker: calculateBodyLength,
  streamCollector,
  base64Decoder: fromBase64,
  base64Encoder: toBase64,
  utf8Decoder: fromUtf8,
  utf8Encoder: toUtf8,
  defaultUserAgent: defaultUserAgent(name, version)
};

@aws-sdk/fetch-http-handler

Provides a way to make requests

Apache-2.0
Latest version published 1 year ago

Package Health Score

72 / 100
Full package analysis

Popular @aws-sdk/fetch-http-handler functions

Similar packages