(HttpMethodWire methodWire)
| 445 | ); |
| 446 | |
| 447 | private static HttpMethod FromWireMethod(HttpMethodWire methodWire) => |
| 448 | methodWire switch |
| 449 | { |
| 450 | HttpMethodWire.Get => HttpMethod.Get, |
| 451 | HttpMethodWire.Head => HttpMethod.Head, |
| 452 | HttpMethodWire.Post => HttpMethod.Post, |
| 453 | HttpMethodWire.Put => HttpMethod.Put, |
| 454 | HttpMethodWire.Delete => HttpMethod.Delete, |
| 455 | HttpMethodWire.Connect => HttpMethod.Connect, |
| 456 | HttpMethodWire.Options => HttpMethod.Options, |
| 457 | HttpMethodWire.Trace => HttpMethod.Trace, |
| 458 | HttpMethodWire.Patch => HttpMethod.Patch, |
| 459 | HttpMethodWire.Extension(var extension) => new HttpMethod(extension), |
| 460 | _ => throw new InvalidOperationException("Invalid HTTP method returned from host"), |
| 461 | }; |
| 462 | |
| 463 | private static HttpVersion FromWireVersion(HttpVersionWire versionWire) => |
| 464 | versionWire switch |
nothing calls this directly
no outgoing calls
no test coverage detected