Interface IResponse
Assembly: MediaBrowser.Model.dll
public interface IResponse
Properties
ContentType
Declaration
string ContentType { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
QueryParamCollection Headers { get; }
Property Value
Gets a value indicating whether this instance is closed.
Declaration
Property Value
Type |
Description |
System.Boolean |
|
Declaration
Dictionary<string, object> Items { get; }
Property Value
Type |
Description |
System.Collections.Generic.Dictionary<System.String, System.Object> |
|
Declaration
PipeWriter OutputWriter { get; }
Property Value
Type |
Description |
System.IO.Pipelines.PipeWriter |
|
Declaration
IRequest Request { get; }
Property Value
Declaration
bool SendChunked { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
bool SentHeaders { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
int StatusCode { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
string StatusDescription { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
Declaration
void AddHeader(string name, string value)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
value |
|
Signal that this response has been handled and no more processing should be done.
When used in a request or response filter, no more filters or processing is done on this request.
Declaration
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Declaration
string GetHeader(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Type |
Description |
System.String |
|
Declaration
void Redirect(string url)
Parameters
Type |
Name |
Description |
System.String |
url |
|
SetContentLength(Int64)
Declaration
void SetContentLength(long contentLength)
Parameters
Type |
Name |
Description |
System.Int64 |
contentLength |
|
Declaration
Task TransmitFile(string path, long offset, long count, FileShareMode fileShareMode, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.String |
path |
|
System.Int64 |
offset |
|
System.Int64 |
count |
|
FileShareMode |
fileShareMode |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Extension Methods