Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Commit 390f310

Browse files
committed
Added OnResponseCompleted to HttpResponse
1 parent 93deb0b commit 390f310

File tree

5 files changed

+18
-0
lines changed

5 files changed

+18
-0
lines changed

src/Microsoft.AspNet.Http.Core/DefaultHttpResponse.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ public override void OnSendingHeaders(Action<object> callback, object state)
111111
HttpResponseFeature.OnSendingHeaders(callback, state);
112112
}
113113

114+
public override void OnResponseCompleted(Action<object> callback, object state)
115+
{
116+
HttpResponseFeature.OnResponseCompleted(callback, state);
117+
}
118+
114119
public override void Redirect(string location, bool permanent)
115120
{
116121
if (permanent)

src/Microsoft.AspNet.Http.Core/HttpResponseFeature.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,10 @@ public void OnSendingHeaders(Action<object> callback, object state)
3434
{
3535
throw new NotSupportedException();
3636
}
37+
38+
public void OnResponseCompleted(Action<object> callback, object state)
39+
{
40+
throw new NotSupportedException();
41+
}
3742
}
3843
}

src/Microsoft.AspNet.Http.Interfaces/IHttpResponseFeature.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ public interface IHttpResponseFeature
1515
Stream Body { get; set; }
1616
bool HeadersSent { get; }
1717
void OnSendingHeaders(Action<object> callback, object state);
18+
void OnResponseCompleted(Action<object> callback, object state);
1819
}
1920
}

src/Microsoft.AspNet.Http/HttpResponse.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ public abstract class HttpResponse
2727

2828
public abstract void OnSendingHeaders(Action<object> callback, object state);
2929

30+
public abstract void OnResponseCompleted(Action<object> callback, object state);
31+
3032
public virtual void Redirect(string location)
3133
{
3234
Redirect(location, permanent: false);

src/Microsoft.AspNet.Owin/OwinFeatureCollection.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,11 @@ void IHttpResponseFeature.OnSendingHeaders(Action<object> callback, object state
157157
register(callback, state);
158158
}
159159

160+
void IHttpResponseFeature.OnResponseCompleted(Action<object> callback, object state)
161+
{
162+
throw new NotSupportedException();
163+
}
164+
160165
IPAddress IHttpConnectionFeature.RemoteIpAddress
161166
{
162167
get { return IPAddress.Parse(Prop<string>(OwinConstants.CommonKeys.RemoteIpAddress)); }

0 commit comments

Comments
 (0)