Interface IHttpResponse
Represents an abstract HTTP respone.
Namespace: Solti.Utils.Rpc.Interfaces
Assembly: Solti.Utils.Rpc.Interfaces.dll
Syntax
public interface IHttpResponse
Properties
Headers
The headers being sent to the client.
Declaration
IDictionary<string, string> Headers { get; }
Property Value
Type | Description |
---|---|
IDictionary<String, String> |
IsClosed
Returns true if the response has already been closed.
Declaration
bool IsClosed { get; }
Property Value
Type | Description |
---|---|
Boolean |
OriginalResponse
The original response.
Declaration
object OriginalResponse { get; }
Property Value
Type | Description |
---|---|
Object |
Payload
The response body.
Declaration
Stream Payload { get; }
Property Value
Type | Description |
---|---|
Stream |
Remarks
Content-Length is calculated from the Length property.
StatusCode
Gets or sets the status code of the response.
Declaration
HttpStatusCode StatusCode { get; set; }
Property Value
Type | Description |
---|---|
HttpStatusCode |
Methods
Close()
Closes the curent session.
Declaration
Task Close()
Returns
Type | Description |
---|---|
Task |