def METHOD_NAME(self) -> str:
    if not isinstance(self.stream, trio.SSLStream):
        return "HTTP/1.1"
    ident = self.stream.selected_alpn_protocol()
    return "HTTP/2" if ident == "h2" else "HTTP/1.1"