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

Commit 0d8af4a

Browse files
committed
Added OnResponseCompleted to HttpResponse
1 parent 20848da commit 0d8af4a

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
@@ -112,6 +112,11 @@ public override void OnSendingHeaders(Action<object> callback, object state)
112112
HttpResponseFeature.OnSendingHeaders(callback, state);
113113
}
114114

115+
public override void OnResponseCompleted(Action<object> callback, object state)
116+
{
117+
HttpResponseFeature.OnResponseCompleted(callback, state);
118+
}
119+
115120
public override void Redirect(string location, bool permanent)
116121
{
117122
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
@@ -156,6 +156,11 @@ void IHttpResponseFeature.OnSendingHeaders(Action<object> callback, object state
156156
register(callback, state);
157157
}
158158

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

0 commit comments

Comments
 (0)