Skip to content

Commit 4f833ca

Browse files
authored
Merge pull request #20513 from ewillonermsft/systemwebhttprequest-test-stubs
Add additional SystemWeb HttpRequset properties to C# test stubs
2 parents 6eb2aad + 191dae4 commit 4f833ca

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1-
namespace System.Web;
1+
namespace System
2+
{
3+
public class Uri { }
24

3-
public interface IHtmlString { }
5+
namespace Web
6+
{
7+
public interface IHtmlString { }
8+
}
9+
}

csharp/ql/test/resources/stubs/System.Web.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,13 @@ public class HttpRequest
178178
public string RawUrl { get; set; }
179179
public HttpCookieCollection Cookies => null;
180180
public bool IsAuthenticated { get; set; }
181+
public NameValueCollection Form { get; }
182+
public NameValueCollection Headers { get; }
183+
public NameValueCollection Params { get; }
184+
public string UserAgent { get; }
185+
public Uri UrlReferrer { get; }
186+
public NameValueCollection ServerVariables { get; }
187+
public String this[String key] => null;
181188
}
182189

183190
public class HttpRequestWrapper : System.Web.HttpRequestBase

0 commit comments

Comments
 (0)