]>
Commit | Line | Data |
---|---|---|
15c0b25d AP |
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 |