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

Support HTTP3? #846

Closed
tttturtle-russ opened this issue Sep 4, 2024 · 1 comment
Closed

Support HTTP3? #846

tttturtle-russ opened this issue Sep 4, 2024 · 1 comment
Assignees

Comments

@tttturtle-russ
Copy link

It seems that resty v2 does not support HTTP3/QUIC. Are there any plans to support in v3?

@jeevatkm jeevatkm self-assigned this Sep 4, 2024
@jeevatkm
Copy link
Member

jeevatkm commented Sep 4, 2024

HTTP/3 can be used in Resty using the library https://github.com/quic-go/quic-go with https://pkg.go.dev/github.com/go-resty/resty/v2#Client.SetTransport

roundTripper := &http3.RoundTripper{
	TLSClientConfig: &tls.Config{},  // set a TLS client config, if desired
	QUICConfig:      &quic.Config{}, // QUIC connection options
}
defer roundTripper.Close()

restyClient := resty.New().SetTransport(roundTripper)

Reference: https://quic-go.net/docs/http3/client/

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

No branches or pull requests

2 participants