Class HttpRequest
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
methodstringThe request method.
pathstringThe request target path.
protocolstringThe protocol name in the start line.
versionstringThe protocol version in the start line.
headersIReadOnlyDictionary<string, string>The message headers.
bodybyte[]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").