diff options
Diffstat (limited to 'vendor/golang.org/x/net/http2/not_go18.go')
-rw-r--r-- | vendor/golang.org/x/net/http2/not_go18.go | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/vendor/golang.org/x/net/http2/not_go18.go b/vendor/golang.org/x/net/http2/not_go18.go deleted file mode 100644 index 6f8d3f8..0000000 --- a/vendor/golang.org/x/net/http2/not_go18.go +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | // Copyright 2016 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 | |||
5 | // +build !go1.8 | ||
6 | |||
7 | package http2 | ||
8 | |||
9 | import ( | ||
10 | "io" | ||
11 | "net/http" | ||
12 | ) | ||
13 | |||
14 | func configureServer18(h1 *http.Server, h2 *Server) error { | ||
15 | // No IdleTimeout to sync prior to Go 1.8. | ||
16 | return nil | ||
17 | } | ||
18 | |||
19 | func shouldLogPanic(panicValue interface{}) bool { | ||
20 | return panicValue != nil | ||
21 | } | ||
22 | |||
23 | func reqGetBody(req *http.Request) func() (io.ReadCloser, error) { | ||
24 | return nil | ||
25 | } | ||
26 | |||
27 | func reqBodyIsNoBody(io.ReadCloser) bool { return false } | ||
28 | |||
29 | func go18httpNoBody() io.ReadCloser { return nil } // for tests only | ||