Response Class

Namespace
Microsoft.Net.Http.Server
Assemblies
  • Microsoft.Net.Http.Server

Syntax

public sealed class Response
class Microsoft.Net.Http.Server.Response

Properties

Microsoft.Net.Http.Server.Response.Body
Return type:System.IO.Stream
public Stream Body { get; }
Microsoft.Net.Http.Server.Response.CacheTtl
Return type:System.Nullable<System.TimeSpan>
public TimeSpan? CacheTtl { get; set; }
Microsoft.Net.Http.Server.Response.ContentLength
Return type:System.Nullable<System.Int64>
public long ? ContentLength { get; set; }
Microsoft.Net.Http.Server.Response.ContentType
Return type:System.String
public string ContentType { get; set; }
Microsoft.Net.Http.Server.Response.HasStarted
Return type:System.Boolean
public bool HasStarted { get; }
Microsoft.Net.Http.Server.Response.HasStartedSending
Return type:System.Boolean
public bool HasStartedSending { get; }
Microsoft.Net.Http.Server.Response.Headers
Return type:Microsoft.Net.Http.Server.HeaderCollection
public HeaderCollection Headers { get; }
Microsoft.Net.Http.Server.Response.ReasonPhrase
Return type:System.String
public string ReasonPhrase { get; set; }
Microsoft.Net.Http.Server.Response.ShouldBuffer
Return type:System.Boolean
public bool ShouldBuffer { get; set; }
Microsoft.Net.Http.Server.Response.StatusCode
Return type:System.Int32
public int StatusCode { get; set; }

Methods

OnCompleted(System.Func<System.Object, System.Threading.Tasks.Task>, System.Object)
public void OnCompleted(Func<object, Task> callback, object state)
OnStarting(System.Func<System.Object, System.Threading.Tasks.Task>, System.Object)
public void OnStarting(Func<object, Task> callback, object state)
Reset()
public void Reset()
SendFileAsync(System.String, System.Int64, System.Nullable<System.Int64>, System.Threading.CancellationToken)
Return type:System.Threading.Tasks.Task
public Task SendFileAsync(string path, long offset, long ? count, CancellationToken cancel)