You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

28 lines
562 B

  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. // +build !go1.8
  5. package http2
  6. import (
  7. "io"
  8. "net/http"
  9. )
  10. func configureServer18(h1 *http.Server, h2 *Server) error {
  11. // No IdleTimeout to sync prior to Go 1.8.
  12. return nil
  13. }
  14. func shouldLogPanic(panicValue interface{}) bool {
  15. return panicValue != nil
  16. }
  17. func reqGetBody(req *http.Request) func() (io.ReadCloser, error) {
  18. return nil
  19. }
  20. func reqBodyIsNoBody(io.ReadCloser) bool { return false }