extraKeyHttpVersion constant

String const extraKeyHttpVersion

The key used to store the HTTP protocol version in ResponseBody.extra.

This value is typically "1.0", "1.1", or "2.0" depending on the protocol negotiated with the server.

The value may be unavailable when using some adapters (for example web_adapter and native_dio_adapter), depending on whether the underlying transport exposes protocol metadata.

Implementation

static const extraKeyHttpVersion = 'httpVersion';