Hi, I am struggling making a HTTP/2 ping request using the HTTP2 package "golang.org/x/net/http2". I am making a get request over HTTP/2 but using the HTTP client from the "net/http" package as below. Are there any examples of how to use ping and make a http POST request using the "golang.org/x/net/http2" package? The interface of the client in http2 is vastly different to the http client.
transport := &http2.Transport{TLSClientConfig: config} client := &http.Client{Transport: transport} req := http.NewRequest("POST", deviceEndpoint, bytes.NewReader(payloadByteData)) client.Do(req) Thanks -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.