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