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) => {
201
952
0
GitHub: alexa/ask-cli
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({
50
139
0
+ 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;
5
12
0
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'
0
0
0
+ 3 other calls in file
aws-sdk.S3 is the most popular function in aws-sdk (7245 examples)