Lines Matching refs:headers

60     map<string, string> headers;
61 headers[":status"] = "302";
62 headers["cache-control"] = "private";
63 headers["date"] = "Mon, 21 Oct 2013 20:13:21 GMT";
64 headers["location"] = "https://www.example.com";
65 EXPECT_TRUE(RoundTrip(headers));
68 map<string, string> headers;
69 headers[":status"] = "200";
70 headers["cache-control"] = "private";
71 headers["date"] = "Mon, 21 Oct 2013 20:13:21 GMT";
72 headers["location"] = "https://www.example.com";
73 EXPECT_TRUE(RoundTrip(headers));
76 map<string, string> headers;
77 headers[":status"] = "200";
78 headers["cache-control"] = "private";
79 headers["content-encoding"] = "gzip";
80 headers["date"] = "Mon, 21 Oct 2013 20:13:22 GMT";
81 headers["location"] = "https://www.example.com";
82 headers["set-cookie"] = "foo=ASDJKHQKBZXOQWEOPIUAXQWEOIU;"
84 headers["multivalue"] = string("foo\0bar", 7);
85 EXPECT_TRUE(RoundTrip(headers));
91 map<string, string> headers;
92 headers[":authority"] = "www.example.com";
93 headers[":method"] = "GET";
94 headers[":path"] = "/";
95 headers[":scheme"] = "http";
96 headers["cookie"] = "baz=bing; foo=bar";
97 EXPECT_TRUE(RoundTrip(headers));
100 map<string, string> headers;
101 headers[":authority"] = "www.example.com";
102 headers[":method"] = "GET";
103 headers[":path"] = "/";
104 headers[":scheme"] = "http";
105 headers["cache-control"] = "no-cache";
106 headers["cookie"] = "foo=bar; fizzle=fazzle";
107 EXPECT_TRUE(RoundTrip(headers));
110 map<string, string> headers;
111 headers[":authority"] = "www.example.com";
112 headers[":method"] = "GET";
113 headers[":path"] = "/index.html";
114 headers[":scheme"] = "https";
115 headers["custom-key"] = "custom-value";
116 headers["cookie"] = "baz=bing; fizzle=fazzle; garbage";
117 headers["multivalue"] = string("foo\0bar", 7);
118 EXPECT_TRUE(RoundTrip(headers));
147 map<string, string> headers;
174 headers[name] = value;
176 EXPECT_TRUE(RoundTrip(headers));