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

The request method.

path string

The request target path.

protocol string

The protocol name in the start line.

version string

The protocol version in the start line.

headers IReadOnlyDictionary<string, string>

The message headers.

body byte[]

The message body bytes.

Remarks

Initializes a new instance of the HttpRequest class.

Properties

Body

Gets the request body.

public byte[] Body { get; }

Property Value

byte[]

The request body.

Headers

Gets the request headers, keyed case-insensitively.

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

Property Value

IReadOnlyDictionary<string, string>

The request headers, keyed case-insensitively.

Method

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

public string Method { get; }

Property Value

string

The request method (e.g. "GET", "SETUP").

Path

Gets the request path/URI.

public string Path { get; }

Property Value

string

The request path/URI.

Protocol

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

public string Protocol { get; }

Property Value

string

The protocol name (e.g. "HTTP" or "RTSP").

Version

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

public string Version { get; }

Property Value

string

The protocol version (e.g. "1.1" or "1.0").