(type)
| 945 | } |
| 946 | |
| 947 | function sessionName(type) { |
| 948 | switch (type) { |
| 949 | case NGHTTP2_SESSION_CLIENT: |
| 950 | return 'client'; |
| 951 | case NGHTTP2_SESSION_SERVER: |
| 952 | return 'server'; |
| 953 | default: |
| 954 | return '<invalid>'; |
| 955 | } |
| 956 | } |
| 957 | |
| 958 | function getAuthority(headers) { |
| 959 | // For non-CONNECT requests, HTTP/2 allows either :authority |
no outgoing calls
no test coverage detected
searching dependent graphs…