• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
7package http2
8
9import (
10	"io"
11	"net/http"
12)
13
14func configureServer18(h1 *http.Server, h2 *Server) error {
15	// No IdleTimeout to sync prior to Go 1.8.
16	return nil
17}
18
19func shouldLogPanic(panicValue interface{}) bool {
20	return panicValue != nil
21}
22
23func reqGetBody(req *http.Request) func() (io.ReadCloser, error) {
24	return nil
25}
26
27func reqBodyIsNoBody(io.ReadCloser) bool { return false }
28
29func go18httpNoBody() io.ReadCloser { return nil } // for tests only
30