Mint.HTTP.protocol
You're seeing just the function
protocol
, go back to Mint.HTTP module for more information.
Specs
protocol(t()) :: :http1 | :http2
Returns the protocol used by the current connection.
Examples
iex> Mint.HTTP.protocol(%Mint.HTTP1{})
:http1
iex> Mint.HTTP.protocol(%Mint.HTTP2{})
:http2