MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / FromWireMethod

Method FromWireMethod

crates/bindings-csharp/Runtime/Http.cs:447–461  ·  view source on GitHub ↗
(HttpMethodWire methodWire)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected