Issue with Http2 Integration Understanding #1708
prabhatmishra33
started this conversation in
General
Replies: 1 comment 7 replies
-
What issue are you seeing? |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What would you like to discuss?
I was to discuss about the http2 implementation with GOT. Below changes i have done as to implement http2 for GOT.
Upgraded Node to v15.10.0
added
http2: true
into my options. you can see belowlet options = { retry: httpClient.getRetryConfig(url), timeout: 5000, responseType: 'json', agent: httpClient.getHttpAgent(), maxContentLength: Infinity, http2: true };
Added http2 in the agent
`
const HttpAgent = require('agentkeepalive');
const { HttpsAgent } = HttpAgent;
const Http2Wrapper = require('http2-wrapper');
`
Please let me know if some more changes needed to be integrated
...
Checklist
node v15.10.0
"got": "^11.8.2"
"http2-wrapper": "^1.0.3"
"agentkeepalive": "^4.1.4"
https://www.npmjs.com/package/got#http2
Beta Was this translation helpful? Give feedback.
All reactions