This repository was archived by the owner on Nov 20, 2018. It is now read-only.
File tree 3 files changed +13
-0
lines changed
Microsoft.AspNetCore.Http/Features
Microsoft.AspNetCore.Http.Features
Microsoft.AspNetCore.Owin
3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,11 @@ public interface IHttpRequestFeature
48
48
/// </summary>
49
49
string QueryString { get ; set ; }
50
50
51
+ /// <summary>
52
+ /// The request target as it was sent in the HTTP request.
53
+ /// </summary>
54
+ string RawTarget { get ; set ; }
55
+
51
56
/// <summary>
52
57
/// Headers included in the request, aggregated by header name. The values are not split
53
58
/// or merged across header lines. E.g. The following headers:
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ public HttpRequestFeature()
17
17
PathBase = string . Empty ;
18
18
Path = string . Empty ;
19
19
QueryString = string . Empty ;
20
+ RawTarget = string . Empty ;
20
21
}
21
22
22
23
public string Protocol { get ; set ; }
@@ -25,6 +26,7 @@ public HttpRequestFeature()
25
26
public string PathBase { get ; set ; }
26
27
public string Path { get ; set ; }
27
28
public string QueryString { get ; set ; }
29
+ public string RawTarget { get ; set ; }
28
30
public IHeaderDictionary Headers { get ; set ; }
29
31
public Stream Body { get ; set ; }
30
32
}
Original file line number Diff line number Diff line change @@ -102,6 +102,12 @@ string IHttpRequestFeature.QueryString
102
102
set { Prop ( OwinConstants . RequestQueryString , Utilities . RemoveQuestionMark ( value ) ) ; }
103
103
}
104
104
105
+ string IHttpRequestFeature . RawTarget
106
+ {
107
+ get { throw new NotSupportedException ( ) ; }
108
+ set { throw new NotSupportedException ( ) ; }
109
+ }
110
+
105
111
IHeaderDictionary IHttpRequestFeature . Headers
106
112
{
107
113
get { return Utilities . MakeHeaderDictionary ( Prop < IDictionary < string , string [ ] > > ( OwinConstants . RequestHeaders ) ) ; }
You can’t perform that action at this time.
0 commit comments