requiresHTTP1 reports whether this request requires being sent on an HTTP/1 connection.
(r *http.Request)
| 117 | // requiresHTTP1 reports whether this request requires being sent on |
| 118 | // an HTTP/1 connection. |
| 119 | func requestRequiresHTTP1(r *http.Request) bool { |
| 120 | return hasToken(r.Header.Get("Connection"), "upgrade") && |
| 121 | ascii.EqualFold(r.Header.Get("Upgrade"), "websocket") |
| 122 | } |
| 123 | |
| 124 | func isReplayable(r *http.Request) bool { |
| 125 | if r.Body == nil || r.Body == NoBody || r.GetBody != nil { |
no test coverage detected
searching dependent graphs…