config_pre_go124.go 461 B

12345678910111213141516
  1. // Copyright 2024 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. //go:build !go1.24
  5. package http2
  6. import "net/http"
  7. // Pre-Go 1.24 fallback.
  8. // The Server.HTTP2 and Transport.HTTP2 config fields were added in Go 1.24.
  9. func fillNetHTTPServerConfig(conf *http2Config, srv *http.Server) {}
  10. func fillNetHTTPTransportConfig(conf *http2Config, tr *http.Transport) {}