Mint.HTTP.protocol

You're seeing just the function protocol, go back to Mint.HTTP module for more information.
Link to this function

protocol(arg1)

View Source (since 1.4.0)

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