Class TusHttpResponse
Represents a response from a request made to a Tus enabled server. See https://github.com/jonstodle/TusDotNetClient
Namespace: Unity.Services.Ccd.Management
Syntax
public class TusHttpResponse : object
Constructors
TusHttpResponse(HttpStatusCode, IDictionary<String, String>, Byte[])
Create an instance of a TusHttpResponse.
Declaration
public TusHttpResponse(HttpStatusCode statusCode, IDictionary<string, string> headers = null, byte[] responseBytes = null)
Parameters
Type | Name | Description |
---|---|---|
HttpStatusCode | statusCode | The HTTP status code of the response. |
IDictionary<String, String> | headers | The HTTP headers of the response. |
Byte[] | responseBytes | The content of the response. |
Properties
Headers
Get the HTTP headers from the response.
Declaration
public IReadOnlyDictionary<string, string> Headers { get; }
Property Value
Type | Description |
---|---|
IReadOnlyDictionary<String, String> |
ResponseBytes
Get the content of the HTTP response as bytes.
Declaration
public byte[] ResponseBytes { get; }
Property Value
Type | Description |
---|---|
Byte[] |
ResponseString
Get the content of the HTTP response as a
Declaration
public string ResponseString { get; }
Property Value
Type | Description |
---|---|
String |
StatusCode
Get the HTTP status code from the Tus server.
Declaration
public HttpStatusCode StatusCode { get; }
Property Value
Type | Description |
---|---|
HttpStatusCode |