Add node modules and compiled JavaScript from main (#54)
Co-authored-by: Oliver King <oking3@uncc.edu>
This commit is contained in:
committed by
GitHub
parent
4a983766a0
commit
52d71d28bd
28
node_modules/http2-wrapper/source/index.js
generated
vendored
Normal file
28
node_modules/http2-wrapper/source/index.js
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
'use strict';
|
||||
const http2 = require('http2');
|
||||
const agent = require('./agent');
|
||||
const ClientRequest = require('./client-request');
|
||||
const IncomingMessage = require('./incoming-message');
|
||||
const auto = require('./auto');
|
||||
|
||||
const request = (url, options, callback) => {
|
||||
return new ClientRequest(url, options, callback);
|
||||
};
|
||||
|
||||
const get = (url, options, callback) => {
|
||||
// eslint-disable-next-line unicorn/prevent-abbreviations
|
||||
const req = new ClientRequest(url, options, callback);
|
||||
req.end();
|
||||
|
||||
return req;
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
...http2,
|
||||
ClientRequest,
|
||||
IncomingMessage,
|
||||
...agent,
|
||||
request,
|
||||
get,
|
||||
auto
|
||||
};
|
Reference in New Issue
Block a user