(h http.Header)
| 1576 | } |
| 1577 | |
| 1578 | func upgradeType(h http.Header) string { |
| 1579 | if !httpguts.HeaderValuesContainsToken(h["Connection"], "Upgrade") { |
| 1580 | return "" |
| 1581 | } |
| 1582 | return strings.ToLower(h.Get("Upgrade")) |
| 1583 | } |
| 1584 | |
| 1585 | // removeConnectionHeaders removes hop-by-hop headers listed in the "Connection" header of h. |
| 1586 | // See RFC 7230, section 6.1 |
no test coverage detected