toHttpVersion method

HttpVersion toHttpVersion()

Implementation

HttpVersion toHttpVersion() {
  switch (this) {
    case 'http1.1':
      return HttpVersion.http1_1;
    case 'http2':
      return HttpVersion.http2;
  }
  throw Exception('$this is not known in enum HttpVersion');
}