NetCoreResponse
Assembly: ServiceStack.dll
View Source
Declaration
public class NetCoreResponse : object, IHttpResponse, IResponse, IHasHeaders
Properties
HttpContext
View Source
Declaration
public HttpContext HttpContext { get; }
HttpResponse
View Source
Declaration
public HttpResponse HttpResponse { get; }
BufferedStream
View Source
Declaration
public MemoryStream BufferedStream { get; set; }
OutputStream
View Source
Declaration
public Stream OutputStream { get; }
UseBufferedStream
View Source
Declaration
public bool UseBufferedStream { get; set; }
OriginalResponse
View Source
Declaration
public object OriginalResponse { get; }
Request
View Source
Declaration
public IRequest Request { get; }
StatusCode
View Source
Declaration
public int StatusCode { get; set; }
StatusDescription
View Source
Declaration
public string StatusDescription { get; set; }
ContentType
View Source
Declaration
public string ContentType { get; set; }
Dto
View Source
Declaration
public object Dto { get; set; }
IsClosed
View Source
Declaration
public bool IsClosed { get; }
KeepAlive
View Source
Declaration
public bool KeepAlive { get; set; }
HasStarted
View Source
Declaration
public bool HasStarted { get; }
Items
View Source
Declaration
public Dictionary<string, object> Items { get; set; }
Cookies
View Source
Declaration
public ICookies Cookies { get; }
Headers
View Source
Declaration
public Dictionary<string, string> Headers { get; }
Methods
AddHeader(String, String)
View Source
Declaration
public void AddHeader(string name, string value)
Parameters
Type | Name |
---|---|
System.String | name |
System.String | value |
RemoveHeader(String)
View Source
Declaration
public void RemoveHeader(string name)
Parameters
Type | Name |
---|---|
System.String | name |
GetHeader(String)
View Source
Declaration
public string GetHeader(string name)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | name |
Redirect(String)
View Source
Declaration
public void Redirect(string url)
Parameters
Type | Name |
---|---|
System.String | url |
Close()
View Source
Declaration
public void Close()
CloseAsync(CancellationToken)
View Source
Declaration
public async Task CloseAsync(CancellationToken token = null)
Returns
Task
Parameters
Type | Name |
---|---|
CancellationToken | token |
End()
View Source
Declaration
public void End()
Flush()
View Source
Declaration
public void Flush()
FlushAsync(CancellationToken)
View Source
Declaration
public async Task FlushAsync(CancellationToken token = null)
Returns
Task
Parameters
Type | Name |
---|---|
CancellationToken | token |
SetContentLength(Int64)
View Source
Declaration
public void SetContentLength(long contentLength)
Parameters
Type | Name |
---|---|
System.Int64 | contentLength |
SetCookie(Cookie)
View Source
Declaration
public void SetCookie(Cookie cookie)
Parameters
Type | Name |
---|---|
Cookie | cookie |
ClearCookies()
View Source
Declaration
public void ClearCookies()