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