Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Http2 Agent #107

Closed
yovanoc opened this issue Jun 12, 2020 · 4 comments
Closed

Http2 Agent #107

yovanoc opened this issue Jun 12, 2020 · 4 comments

Comments

@yovanoc
Copy link

yovanoc commented Jun 12, 2020

Hello, not a real issue sorry, just a question.

I found this issue on got: sindresorhus/got#1265

And wanted to know, have you planned to do an http2 agent?

@yovanoc
Copy link
Author

yovanoc commented Jun 12, 2020

I think we can look forward to this maybe

import http2 from "http2-wrapper";

class MyAgent extends http2.Agent {
  createConnection(origin: string, options: any) {
    console.log(`Connecting to ${http2.Agent.normalizeOrigin(origin)}`);
    return http2.Agent.connect(origin, options);
  }
}

@yovanoc
Copy link
Author

yovanoc commented Jun 12, 2020

with this for websockets websockets/ws#1458

@yovanoc
Copy link
Author

yovanoc commented Jun 30, 2020

Hello back @TooTallNate , we can financially support you for this if you want

@TooTallNate
Copy link
Owner

This module has gone through a large refactor and modernization. I am closing this issue as a bit of house cleaning. If you feel that this issue still exists in the latest release, feel free to open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants