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