|
|
@@ -250,7 +250,7 @@ namespace Microsoft.AspNetCore.Http
|
|
|
{
|
|
|
protected HttpRequest() { }
|
|
|
public abstract System.IO.Stream Body { get; set; }
|
|
|
- public abstract System.IO.Pipelines.PipeReader BodyReader { get; set; }
|
|
|
+ public virtual System.IO.Pipelines.PipeReader BodyReader { get { throw null; } set { } }
|
|
|
public abstract long? ContentLength { get; set; }
|
|
|
public abstract string ContentType { get; set; }
|
|
|
public abstract Microsoft.AspNetCore.Http.IRequestCookieCollection Cookies { get; set; }
|
|
|
@@ -274,7 +274,7 @@ namespace Microsoft.AspNetCore.Http
|
|
|
{
|
|
|
protected HttpResponse() { }
|
|
|
public abstract System.IO.Stream Body { get; set; }
|
|
|
- public abstract System.IO.Pipelines.PipeWriter BodyWriter { get; set; }
|
|
|
+ public virtual System.IO.Pipelines.PipeWriter BodyWriter { get { throw null; } set { } }
|
|
|
public abstract long? ContentLength { get; set; }
|
|
|
public abstract string ContentType { get; set; }
|
|
|
public abstract Microsoft.AspNetCore.Http.IResponseCookies Cookies { get; }
|
|
|
@@ -290,7 +290,7 @@ namespace Microsoft.AspNetCore.Http
|
|
|
public abstract void Redirect(string location, bool permanent);
|
|
|
public virtual void RegisterForDispose(System.IDisposable disposable) { }
|
|
|
public virtual void RegisterForDisposeAsync(System.IAsyncDisposable disposable) { }
|
|
|
- public abstract System.Threading.Tasks.Task StartAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
|
|
+ public virtual System.Threading.Tasks.Task StartAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
|
|
|
}
|
|
|
public static partial class HttpResponseWritingExtensions
|
|
|
{
|