Class HttpResponse
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
protocolstringThe protocol name in the start line.
versionstringThe protocol version in the start line.
codeintThe response status code.
messagestringThe response reason phrase.
headersIReadOnlyDictionary<string, string>The message headers.
bodybyte[]The message body bytes.
Remarks
Initializes a new instance of the HttpResponse class.
Properties
Body
Gets the response body.
public byte[] Body { get; }
Property Value
- byte[]
The response body.
Code
Gets the numeric status code.
public int Code { get; }
Property Value
- int
The numeric status code.
Headers
Gets the response headers, keyed case-insensitively.
public IReadOnlyDictionary<string, string> Headers { get; }
Property Value
- IReadOnlyDictionary<string, string>
The response headers, keyed case-insensitively.
Message
Gets the status message.
public string Message { get; }
Property Value
- string
The status message.
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").