okhttp / okhttp3 / Connection / protocol

protocol

abstract fun protocol(): Protocol

Returns the protocol negotiated by this connection, or Protocol.HTTP_1_1 if no protocol has been negotiated. This method returns Protocol.HTTP_1_1 even if the remote peer is using Protocol.HTTP_1_0.