// Copyright 2024 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build go1.24

package http2

import 

// fillNetHTTPServerConfig sets fields in conf from srv.HTTP2.
func ( *http2Config,  *http.Server) {
	fillNetHTTPConfig(, .HTTP2)
}

// fillNetHTTPTransportConfig sets fields in conf from tr.HTTP2.
func ( *http2Config,  *http.Transport) {
	fillNetHTTPConfig(, .HTTP2)
}

func ( *http2Config,  *http.HTTP2Config) {
	if  == nil {
		return
	}
	if .MaxConcurrentStreams != 0 {
		.MaxConcurrentStreams = uint32(.MaxConcurrentStreams)
	}
	if .MaxEncoderHeaderTableSize != 0 {
		.MaxEncoderHeaderTableSize = uint32(.MaxEncoderHeaderTableSize)
	}
	if .MaxDecoderHeaderTableSize != 0 {
		.MaxDecoderHeaderTableSize = uint32(.MaxDecoderHeaderTableSize)
	}
	if .MaxConcurrentStreams != 0 {
		.MaxConcurrentStreams = uint32(.MaxConcurrentStreams)
	}
	if .MaxReadFrameSize != 0 {
		.MaxReadFrameSize = uint32(.MaxReadFrameSize)
	}
	if .MaxReceiveBufferPerConnection != 0 {
		.MaxUploadBufferPerConnection = int32(.MaxReceiveBufferPerConnection)
	}
	if .MaxReceiveBufferPerStream != 0 {
		.MaxUploadBufferPerStream = int32(.MaxReceiveBufferPerStream)
	}
	if .SendPingTimeout != 0 {
		.SendPingTimeout = .SendPingTimeout
	}
	if .PingTimeout != 0 {
		.PingTimeout = .PingTimeout
	}
	if .WriteByteTimeout != 0 {
		.WriteByteTimeout = .WriteByteTimeout
	}
	if .PermitProhibitedCipherSuites {
		.PermitProhibitedCipherSuites = true
	}
	if .CountError != nil {
		.CountError = .CountError
	}
}