Table of Contents

Class HttpResponse

Namespace
AppleTvControlLibrary.Mrp.AirPlay.Http
Assembly
AppleTvControlLibrary.Mrp.dll

A generic HTTP response message, as used by the RTSP-over-HTTP control connection of an AirPlay 2 session.

public sealed class HttpResponse
Inheritance
HttpResponse
Inherited Members

Remarks

Initializes a new instance of the HttpResponse class.

Constructors

HttpResponse(string, string, int, string, IReadOnlyDictionary<string, string>, byte[])

A generic HTTP response message, as used by the RTSP-over-HTTP control connection of an AirPlay 2 session.

public HttpResponse(string protocol, string version, int code, string message, IReadOnlyDictionary<string, string> headers, byte[] body)

Parameters

protocol string
version string
code int
message string
headers IReadOnlyDictionary<string, string>
body byte[]

Remarks

Initializes a new instance of the HttpResponse class.

Properties

Body

Gets the response body.

public byte[] Body { get; }

Property Value

byte[]

Code

Gets the numeric status code.

public int Code { get; }

Property Value

int

Headers

Gets the response headers, keyed case-insensitively.

public IReadOnlyDictionary<string, string> Headers { get; }

Property Value

IReadOnlyDictionary<string, string>

Message

Gets the status message.

public string Message { get; }

Property Value

string

Protocol

Gets the protocol name (e.g. "HTTP" or "RTSP").

public string Protocol { get; }

Property Value

string

Version

Gets the protocol version (e.g. "1.1" or "1.0").

public string Version { get; }

Property Value

string