github.com/aavshr/aws-sdk-go@v1.41.3/private/protocol/eventstream/eventstreamtest/setup_server.go (about) 1 //go:build !go1.10 2 // +build !go1.10 3 4 package eventstreamtest 5 6 import ( 7 "net/http" 8 "net/http/httptest" 9 ) 10 11 // /x/net/http2 is only available for the latest two versions of Go. Any Go 12 // version older than that cannot use the utility to configure the http2 13 // server. 14 func setupServer(server *httptest.Server, useH2 bool) *http.Client { 15 server.Start() 16 17 return nil 18 }