33 references to SetCookieHeaderValue
Microsoft.AspNetCore.Http (1)
Internal\ResponseCookies.cs (1)
34var setCookieHeaderValue = new SetCookieHeaderValue(key, Uri.EscapeDataString(value))
Microsoft.AspNetCore.Http.Features (1)
CookieOptions.cs (1)
113var cookie = new SetCookieHeaderValue(name, value)
Microsoft.Net.Http.Headers (1)
SetCookieHeaderValue.cs (1)
57: this(name, StringSegment.Empty)
Microsoft.Net.Http.Headers.Tests (30)
SetCookieHeaderValueTest.cs (30)
15var header1 = new SetCookieHeaderValue("name1", "n1=v1&n2=v2&n3=v3") 29var header2 = new SetCookieHeaderValue("name2", ""); 32var header3 = new SetCookieHeaderValue("name2", "value2"); 35var header4 = new SetCookieHeaderValue("name4", "value4") 41var header5 = new SetCookieHeaderValue("name5", "value5") 48var header6 = new SetCookieHeaderValue("name6", "value6") 54var header7 = new SetCookieHeaderValue("name7", "value7") 60var header8 = new SetCookieHeaderValue("name8", "value8"); 65var header9 = new SetCookieHeaderValue("name9", "value9") 71var header10 = new SetCookieHeaderValue("name10", "value10") 132var header1 = new SetCookieHeaderValue("name1", "n1=v1&n2=v2&n3=v3") 147var header2 = new SetCookieHeaderValue("name2", "value2"); 150var header3 = new SetCookieHeaderValue("name3", "value3") 156var header4 = new SetCookieHeaderValue("name4", "value4") 163var header5 = new SetCookieHeaderValue("name5", "value5") 170var header6 = new SetCookieHeaderValue("name6", "value6") 176var header7 = new SetCookieHeaderValue("name7", "value7") 182var header8 = new SetCookieHeaderValue("name8", "value8") 189var header9 = new SetCookieHeaderValue("name9", "value9"); 235var header1 = new SetCookieHeaderValue("name1", "n1=v1&n2=v2&n3=v3") 247var header2 = new SetCookieHeaderValue("name2", "value2"); 250var header3 = new SetCookieHeaderValue("name3", "value3") 256var header4 = new SetCookieHeaderValue("name4", "value4") 265var invalidHeader2a = new SetCookieHeaderValue("expires", "Sun"); 266var invalidHeader2b = new SetCookieHeaderValue("domain", "domain1"); 269var invalidHeader3 = new SetCookieHeaderValue("domain", "domain1") 300Assert.Throws<ArgumentNullException>(() => new SetCookieHeaderValue(null, "value")); 307Assert.Throws<ArgumentException>(() => new SetCookieHeaderValue(name, "value")); 314Assert.Throws<ArgumentException>(() => new SetCookieHeaderValue("name", value)); 331var header = new SetCookieHeaderValue(name, value);