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
protocolstringversionstringcodeintmessagestringheadersIReadOnlyDictionary<string, string>bodybyte[]
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
Headers
Gets the response headers, keyed case-insensitively.
public IReadOnlyDictionary<string, string> Headers { get; }
Property Value
Message
Gets the status message.
public string Message { 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; }