go15.go 287 B

123456789101112
  1. // Copyright 2015 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. // +build go1.5
  5. package http2
  6. import "net/http"
  7. func requestCancel(req *http.Request) <-chan struct{} { return req.Cancel }