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
methodstringpathstringprotocolstringversionstringheadersIReadOnlyDictionary<string, string>bodybyte[]
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
Method
Gets the request method (e.g. "GET", "SETUP").
public string Method { get; }
Property Value
Path
Gets the request path/URI.
public string Path { get; }
Property Value
Protocol
Gets the protocol name (e.g. "HTTP" or "RTSP").
public string Protocol { get; }
Property Value
Version
Gets the protocol version (e.g. "1.1" or "1.0").
public string Version { get; }