(r *http.Request)
| 375 | } |
| 376 | |
| 377 | func determineHTTP2Type(r *http.Request) Type { |
| 378 | switch { |
| 379 | case isConfigurationUpdate(r): |
| 380 | return TypeConfiguration |
| 381 | case isWebsocketUpgrade(r): |
| 382 | return TypeWebsocket |
| 383 | case IsTCPStream(r): |
| 384 | return TypeTCP |
| 385 | case isControlStreamUpgrade(r): |
| 386 | return TypeControlStream |
| 387 | default: |
| 388 | return TypeHTTP |
| 389 | } |
| 390 | } |
| 391 | |
| 392 | func handleMissingRequestParts(connType Type, r *http.Request) { |
| 393 | if connType == TypeHTTP { |
no test coverage detected