]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blame - vendor/golang.org/x/net/http2/not_go18.go
Merge pull request #27 from terraform-providers/go-modules-2019-02-22
[github/fretlink/terraform-provider-statuscake.git] / vendor / golang.org / x / net / http2 / not_go18.go
CommitLineData
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
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