Class TusHttpResponse
Represents a response from a request made to a Tus enabled server. See https://github.com/jonstodle/TusDotNetClient
Inherited Members
Namespace: Unity.Services.Ccd.Management
Assembly: Unity.Services.Ccd.Management.dll
Syntax
public class TusHttpResponse
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 string.
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 |