Class RendezvousHttpResponse

Namespace
Unity.Multiplayer.Core

An HTTP response: status code and body text.

public sealed class RendezvousHttpResponse
Inheritance
RendezvousHttpResponse
Inherited Members

Constructors

RendezvousHttpResponse(int, string)

Creates a response.

public RendezvousHttpResponse(int statusCode, string body)

Parameters

statusCode int
body string

Properties

Body

The body text; empty when there was none.

public string Body { get; }

Property Value

string

IsSuccess

True for a 2xx status.

public bool IsSuccess { get; }

Property Value

bool

StatusCode

The HTTP status code.

public int StatusCode { get; }

Property Value

int