Skip to content

How may I go about making http3 requests with resty? #791

Answered by jeevatkm
rew1nter asked this question in Q&A
Discussion options

You must be logged in to vote

@rew1nter Go lang has not yet added HTTP3 to the standard library; I will have to wait for that.
However, based on the quic-go library, there is a possibility to use quick-go lib with Resty.

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

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

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

// then typical use of resty happens

Give it a try.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rew1nter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants