Table of Contents

Class HttpRequest

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

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

public sealed class HttpRequest
Inheritance
HttpRequest
Inherited Members

Remarks

Initializes a new instance of the HttpRequest class.

Constructors

HttpRequest(string, string, string, string, IReadOnlyDictionary<string, string>, byte[])

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

public HttpRequest(string method, string path, string protocol, string version, IReadOnlyDictionary<string, string> headers, byte[] body)

Parameters

method string
path string
protocol string
version string
headers IReadOnlyDictionary<string, string>
body byte[]

Remarks

Initializes a new instance of the HttpRequest class.

Properties

Body

Gets the request body.

public byte[] Body { get; }

Property Value

byte[]

Headers

Gets the request headers, keyed case-insensitively.

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

Property Value

IReadOnlyDictionary<string, string>

Method

Gets the request method (e.g. "GET", "SETUP").

public string Method { get; }

Property Value

string

Path

Gets the request path/URI.

public string Path { 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