BasicHttpResponse
Assembly: ServiceStack.dll
View Source
Declaration
public class BasicHttpResponse : BasicResponse, IHasHeaders, IHttpResponse, IResponse
Properties
CookieCollection
View Source
Declaration
public List<Cookie> CookieCollection { get; }
Cookies
View Source
Declaration
public ICookies Cookies { get; }
Inherited Properties
ContentType
View Source
Declaration
public string ContentType { get; set; }
Dto
View Source
Declaration
public object Dto { get; set; }
HasStarted
View Source
Declaration
public bool HasStarted { get; set; }
Headers
View Source
Declaration
public Dictionary<string, string> Headers { get; }
IsClosed
View Source
Declaration
public bool IsClosed { get; set; }
Items
View Source
Declaration
public Dictionary<string, object> Items { get; }
KeepAlive
View Source
Declaration
public bool KeepAlive { get; set; }
OriginalResponse
View Source
Declaration
public object OriginalResponse { get; set; }
OutputStream
View Source
Declaration
public Stream OutputStream { 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; }
UseBufferedStream
View Source
Declaration
public bool UseBufferedStream { get; set; }
Methods
SetCookie(Cookie)
View Source
Declaration
public void SetCookie(Cookie cookie)
Parameters
Type | Name |
---|---|
System.Net.Cookie | cookie |
ClearCookies()
View Source
Declaration
public void ClearCookies()
Inherited Methods
AddHeader(String, String)
View Source
Declaration
public void AddHeader(string name, string value)
Parameters
Type | Name |
---|---|
System.String | name |
System.String | value |
Close()
View Source
Declaration
public void Close()
CloseAsync(CancellationToken)
View Source
Declaration
public Task CloseAsync(CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |
End()
View Source
Declaration
public void End()
Flush()
View Source
Declaration
public void Flush()
FlushAsync(CancellationToken)
View Source
Declaration
public Task FlushAsync(CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |
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 |
RemoveHeader(String)
View Source
Declaration
public void RemoveHeader(string name)
Parameters
Type | Name |
---|---|
System.String | name |
SetContentLength(Int64)
View Source
Declaration
public void SetContentLength(long contentLength)
Parameters
Type | Name |
---|---|
System.Int64 | contentLength |
Write(String)
View Source
Declaration
public void Write(string text)
Parameters
Type | Name |
---|---|
System.String | text |