Interface IRendezvousHttp
- Namespace
- Unity.Multiplayer.Core
One HTTP exchange with the rendezvous service, as RendezvousClient sees it.
public interface IRendezvousHttp
Methods
SendAsync(string, string, string, IReadOnlyDictionary<string, string>, CancellationToken)
Sends method path (relative to the service's base URL) with an
optional JSON body and extra headers, and returns the status and body. Throws only when no
response came back (the service is unreachable, or the request timed out).
Task<RendezvousHttpResponse> SendAsync(string method, string path, string jsonBody, IReadOnlyDictionary<string, string> headers, CancellationToken cancellationToken)
Parameters
methodstringpathstringjsonBodystringheadersIReadOnlyDictionary<string, string>cancellationTokenCancellationToken