MCPcopy
hub / github.com/mitmproxy/mitmproxy / render_priority

Method render_priority

mitmproxy/contentviews/_view_http3.py:140–150  ·  view source on GitHub ↗
(
        self,
        data: bytes,
        metadata: Metadata,
    )

Source from the content-addressed store, hash-verified

138 return "\n\n".join(frame.pretty() for frame in frames)
139
140 def render_priority(
141 self,
142 data: bytes,
143 metadata: Metadata,
144 ) -> float:
145 flow = metadata.flow
146 return (
147 2
148 * float(bool(flow and is_h3_alpn(flow.client_conn.alpn)))
149 * float(isinstance(flow, tcp.TCPFlow))
150 )
151
152
153http3 = Http3Contentview()

Callers

nothing calls this directly

Calls 1

is_h3_alpnFunction · 0.85

Tested by

no test coverage detected