1 type derived from HttpEncoder
System.Web (1)
Security\AntiXss\AntiXssEncoder.cs (1)
14
public class AntiXssEncoder :
HttpEncoder
{
1 instantiation of HttpEncoder
System.Web (1)
Util\HttpEncoder.cs (1)
31
private static readonly HttpEncoder _defaultEncoder = new
HttpEncoder
();
36 references to HttpEncoder
System.Web (36)
HttpHeaderCollection.cs (1)
123
HttpEncoder
.Current.HeaderNameValueEncode(name, value, out encodedName, out encodedValue);
HttpRequest.cs (2)
1883
q = "?" +
HttpEncoder
.CollapsePercentUFromStringInternal(q, QueryStringEncoding);
1935
q = "?" +
HttpEncoder
.CollapsePercentUFromStringInternal(q, QueryStringEncoding);
HttpResponseHeader.cs (2)
38
HttpEncoder
.Current.HeaderNameValueEncode(Name, value, out encodedName, out _value);
51
HttpEncoder
.Current.HeaderNameValueEncode(unknownHeader, value, out _unknownHeader, out _value);
HttpRuntime.cs (1)
662
HttpEncoder
.InitializeOnFirstRequest();
httpserverutility.cs (17)
1041
return
HttpEncoder
.Current.UrlTokenEncode(input);
1049
return
HttpEncoder
.Current.UrlTokenDecode(input);
1081
return
HttpEncoder
.Current.HtmlDecode(s);
1091
HttpEncoder
.Current.HtmlDecode(s, output);
1101
return
HttpEncoder
.Current.HtmlEncode(s);
1133
HttpEncoder
.Current.HtmlEncode(s, output);
1143
return
HttpEncoder
.Current.HtmlAttributeEncode(s);
1155
HttpEncoder
.Current.HtmlAttributeEncode(s, output);
1323
return
HttpEncoder
.Current.UrlPathEncode(str);
1351
return
HttpEncoder
.Current.UrlEncodeNonAscii(str, e);
1391
return
HttpEncoder
.Current.UrlEncode(bytes, 0, bytes.Length, false /* alwaysCreateNewReturnValue */);
1409
return
HttpEncoder
.Current.UrlEncode(bytes, offset, count, true /* alwaysCreateNewReturnValue */);
1418
return
HttpEncoder
.Current.UrlEncodeUnicode(str, false /* ignoreAscii */);
1447
return
HttpEncoder
.Current.UrlDecode(str, e);
1465
return
HttpEncoder
.Current.UrlDecode(bytes, offset, count, e);
1503
return
HttpEncoder
.Current.UrlDecode(bytes, offset, count);
1538
string encoded =
HttpEncoder
.Current.JavaScriptStringEncode(value);
Security\AntiXss\AntiXssEncoder.cs (1)
37
if (!
HttpEncoder
.ValidateUrlEncodingParameters(bytes, offset, count)) {
Util\HttpEncoder.cs (12)
25
private static
HttpEncoder
_customEncoder;
28
private static readonly Lazy<
HttpEncoder
> _customEncoderResolver =
29
new Lazy<
HttpEncoder
>(GetCustomEncoderFromConfig);
31
private static readonly
HttpEncoder
_defaultEncoder = new HttpEncoder();
41
_isDefaultEncoder = (GetType() == typeof(
HttpEncoder
));
44
public static
HttpEncoder
Current {
68
public static
HttpEncoder
Default {
137
private static
HttpEncoder
GetCustomEncoderFromConfig() {
145
ConfigUtil.CheckBaseType(typeof(
HttpEncoder
) /* expectedBaseType */, encoderType, "encoderType", runtimeSection);
148
HttpEncoder
encoder = (
HttpEncoder
)HttpRuntime.CreatePublicInstanceByWebObjectActivator(encoderType);
384
HttpEncoder
encoder = _customEncoderResolver.Value;