5 references to EscapeAsQuotedString
Microsoft.AspNetCore.Http.Microbenchmarks (1)
HeaderUtilitiesBenchmark.cs (1)
20return HeaderUtilities.EscapeAsQuotedString("\"hello\\\"foo\\\\bar\\\\baz\\\\\"");
Microsoft.Net.Http.Headers (1)
NameValueHeaderValue.cs (1)
199Value = HeaderUtilities.EscapeAsQuotedString(value);
Microsoft.Net.Http.Headers.Tests (3)
HeaderUtilitiesTest.cs (3)
276var actual = HeaderUtilities.EscapeAsQuotedString(input); 287Assert.Throws<FormatException>(() => { var actual = HeaderUtilities.EscapeAsQuotedString(input); }); 293Assert.Throws<FormatException>(() => { var actual = HeaderUtilities.EscapeAsQuotedString($"{(char)0x7F}"); });