PlayerIO

The fastest way to build online games without breaking a sweat.

Multiplayer Reference

Multiplayer  class documentationClass HttpResponse

Namespace: PlayerIO.GameLibrary
Language: C# / .NET

The response from a HTTP Get or Post request

Here's an example on how to grab the entire response and print it to the console:

Properties

 
public Dictionary<string, string>
Headers  [read-only]

A dictionary containing the headers of the http response

public Stream
ResponseStream  [read-only]

A stream with the body of the http response

public int
StatusCode  [read-only]

The status code returned from the remote web server

public string
Text  [read-only]

The response stream read as an UTF8 string

HttpResponse.Headers

public Dictionary<string, string>
Headers  [read-only]

A dictionary containing the headers of the http response

HttpResponse.ResponseStream

public Stream
ResponseStream  [read-only]

A stream with the body of the http response

HttpResponse.StatusCode

public int
StatusCode  [read-only]

The status code returned from the remote web server

HttpResponse.Text

public string
Text  [read-only]

The response stream read as an UTF8 string