Skip to main content

GrpcResponse

Assembly: ServiceStack.Extensions.dll​
View Source​
Declaration
public class GrpcResponse : object, IHttpResponse, IResponse, IHasHeaders, IWriteEvent, IWriteEventAsync

Properties​

Headers​

View Source​
Declaration
public Dictionary<string, string> Headers { get; }

OriginalResponse​

View Source​
Declaration
public object OriginalResponse { get; set; }

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; }

OutputStream​

View Source​
Declaration
public Stream OutputStream { get; }

Dto​

View Source​
Declaration
public object Dto { get; set; }

UseBufferedStream​

View Source​
Declaration
public bool UseBufferedStream { get; set; }

IsClosed​

View Source​
Declaration
public bool IsClosed { get; set; }

KeepAlive​

View Source​
Declaration
public bool KeepAlive { get; set; }

HasStarted​

View Source​
Declaration
public bool HasStarted { get; set; }

Items​

View Source​
Declaration
public Dictionary<string, object> Items { get; }

Cookies​

View Source​
Declaration
public ICookies Cookies { get; }

EventsChannel​

View Source​
Declaration
public Channel<string> EventsChannel { get; }

Methods​

AddHeader(String, String)​

View Source​
Declaration
public void AddHeader(string name, string value)
Parameters​
TypeName
System.Stringname
System.Stringvalue

RemoveHeader(String)​

View Source​
Declaration
public void RemoveHeader(string name)
Parameters​
TypeName
System.Stringname

GetHeader(String)​

View Source​
Declaration
public string GetHeader(string name)
Returns​

System.String

Parameters​
TypeName
System.Stringname

Redirect(String)​

View Source​
Declaration
public void Redirect(string url)
Parameters​
TypeName
System.Stringurl

Write(String)​

View Source​
Declaration
public void Write(string text)
Parameters​
TypeName
System.Stringtext

Close()​

View Source​
Declaration
public void Close()

CloseAsync(CancellationToken)​

View Source​
Declaration
public Task CloseAsync(CancellationToken token = null)
Returns​

Task

Parameters​
TypeName
CancellationTokentoken

End()​

View Source​
Declaration
public void End()

Flush()​

View Source​
Declaration
public void Flush()

FlushAsync(CancellationToken)​

View Source​
Declaration
public Task FlushAsync(CancellationToken token = null)
Returns​

Task

Parameters​
TypeName
CancellationTokentoken

SetContentLength(Int64)​

View Source​
Declaration
public void SetContentLength(long contentLength)
Parameters​
TypeName
System.Int64contentLength

SetCookie(Cookie)​

View Source​
Declaration
public void SetCookie(Cookie cookie)
Parameters​
TypeName
Cookiecookie

ClearCookies()​

View Source​
Declaration
public void ClearCookies()

WriteEvent(String)​

View Source​
Declaration
public void WriteEvent(string msg)
Parameters​
TypeName
System.Stringmsg

WriteEventAsync(String, CancellationToken)​

View Source​
Declaration
public async Task WriteEventAsync(string msg, CancellationToken token = null)
Returns​

Task

Parameters​
TypeName
System.Stringmsg
CancellationTokentoken

Implements​