How to use the NodeHttpClient function from aws-sdk

Find comprehensive JavaScript aws-sdk.NodeHttpClient code examples handpicked from public code repositorys.

26
27
28
29
30
31
32
33
34
35
// Sign the request (Sigv4)
var signer = new AWS.Signers.V4(req, 'es');
signer.addAuthorization(creds, new Date());

// Post document to the OpenSearch Service
var send = new AWS.NodeHttpClient();

send.handleRequest(req, null, (httpResp) => {
    var body = '';
    httpResp.on('data', (chunk) => {
fork icon201
star icon952
watch icon0

14
15
16
17
18
19
20
21
22
23
24
 */
module.exports = class S3Client extends AbstractAwsClient {
  constructor(configuration) {
    super(configuration);


    const httpClient = new aws.NodeHttpClient();
    const httpAgent = httpClient.getAgent(true, {
      keepAlive: false,
    });
    this.client = new aws.S3({
fork icon50
star icon139
watch icon0

+ 2 other calls in file

103
104
105
106
107
108
109
110
111
112
113
114


function makePercolatorRequest(req, callback) {
  const signer = new AWS.Signers.V4(req, 'es');
  signer.addAuthorization(creds, new Date());


  const client = new AWS.NodeHttpClient();
  client.handleRequest(req, null, function(httpResp) {
    var body = '';
    httpResp.on('data', function(chunk) {
      body += chunk;
fork icon5
star icon12
watch icon0

23
24
25
26
27
28
29
30
31
32
33
chimeRegional.endpoint = new AWS.Endpoint(chimeRegionalEndpoint);


if (alternateEndpoint) {
  console.log('Using endpoint: ' + alternateEndpoint);
  chime.createMeeting({ ClientRequestToken: uuidv4() }, () => {});
  AWS.NodeHttpClient.sslAgent.options.rejectUnauthorized = false;
  chime.endpoint = new AWS.Endpoint(alternateEndpoint);
} else {
  chime.endpoint = new AWS.Endpoint(
    'https://service.chime.aws.amazon.com/console'
fork icon0
star icon0
watch icon0

+ 3 other calls in file