not_go111.go 534 B

123456789101112131415161718192021
  1. // Copyright 2018 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.11
  5. // +build !go1.11
  6. package http2
  7. import (
  8. "net/http/httptrace"
  9. "net/textproto"
  10. )
  11. func traceHasWroteHeaderField(trace *httptrace.ClientTrace) bool { return false }
  12. func traceWroteHeaderField(trace *httptrace.ClientTrace, k, v string) {}
  13. func traceGot1xxResponseFunc(trace *httptrace.ClientTrace) func(int, textproto.MIMEHeader) error {
  14. return nil
  15. }