// Copyright 2018 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.// +build go1.11packagehttp2import("net/http/httptrace""net/textproto")functraceHasWroteHeaderField(trace*httptrace.ClientTrace)bool{returntrace!=nil&&trace.WroteHeaderField!=nil}functraceWroteHeaderField(trace*httptrace.ClientTrace,k,vstring){iftrace!=nil&&trace.WroteHeaderField!=nil{trace.WroteHeaderField(k,[]string{v})}}functraceGot1xxResponseFunc(trace*httptrace.ClientTrace)func(int,textproto.MIMEHeader)error{iftrace!=nil{returntrace.Got1xxResponse}returnnil}