toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case HttpVersion.http1_1:
      return 'http1.1';
    case HttpVersion.http2:
      return 'http2';
  }
}