summaryrefslogtreecommitdiffstats
path: root/vendor/golang.org/x/net/http2/go18.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/golang.org/x/net/http2/go18.go')
-rw-r--r--vendor/golang.org/x/net/http2/go18.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/vendor/golang.org/x/net/http2/go18.go b/vendor/golang.org/x/net/http2/go18.go
index 8c0dd2508..633202c39 100644
--- a/vendor/golang.org/x/net/http2/go18.go
+++ b/vendor/golang.org/x/net/http2/go18.go
@@ -8,6 +8,7 @@ package http2
import (
"crypto/tls"
+ "io"
"net/http"
)
@@ -39,3 +40,11 @@ func configureServer18(h1 *http.Server, h2 *Server) error {
func shouldLogPanic(panicValue interface{}) bool {
return panicValue != nil && panicValue != http.ErrAbortHandler
}
+
+func reqGetBody(req *http.Request) func() (io.ReadCloser, error) {
+ return req.GetBody
+}
+
+func reqBodyIsNoBody(body io.ReadCloser) bool {
+ return body == http.NoBody
+}