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.
14 func configureServer18(h1 *http.Server, h2 *Server) error {
15 // No IdleTimeout to sync prior to Go 1.8.
19 func shouldLogPanic(panicValue interface{}) bool {
20 return panicValue != nil
23 func reqGetBody(req *http.Request) func() (io.ReadCloser, error) {
27 func reqBodyIsNoBody(io.ReadCloser) bool { return false }
29 func go18httpNoBody() io.ReadCloser { return nil } // for tests only