Lines Matching refs:StringRef
49 StringRef::from_lit("example.com:3000"), in test_shrpx_http_create_forwarded()
50 StringRef::from_lit("[::1]"), in test_shrpx_http_create_forwarded()
51 StringRef::from_lit("www.example.com"), in test_shrpx_http_create_forwarded()
52 StringRef::from_lit("https"))); in test_shrpx_http_create_forwarded()
56 balloc, FORWARDED_FOR, StringRef::from_lit("alpha"), in test_shrpx_http_create_forwarded()
57 StringRef::from_lit("192.168.0.1"), in test_shrpx_http_create_forwarded()
58 StringRef::from_lit("bravo"), StringRef::from_lit("charlie"))); in test_shrpx_http_create_forwarded()
63 StringRef::from_lit("_hidden"), StringRef::from_lit("[::1]"), in test_shrpx_http_create_forwarded()
64 StringRef::from_lit(""), StringRef::from_lit(""))); in test_shrpx_http_create_forwarded()
69 StringRef::from_lit("[::1]"), StringRef::from_lit("_hidden"), in test_shrpx_http_create_forwarded()
70 StringRef::from_lit(""), StringRef::from_lit(""))); in test_shrpx_http_create_forwarded()
76 StringRef::from_lit(""), StringRef::from_lit(""), in test_shrpx_http_create_forwarded()
77 StringRef::from_lit(""), StringRef::from_lit(""))); in test_shrpx_http_create_forwarded()
85 CU_ASSERT(("1.1 nghttpx" == StringRef{std::begin(buf), end})); in test_shrpx_http_create_via_header_value()
91 CU_ASSERT(("2 nghttpx" == StringRef{std::begin(buf), end})); in test_shrpx_http_create_via_header_value()
96 StringRef c; in test_shrpx_http_create_affinity_cookie()
98 c = http::create_affinity_cookie(balloc, StringRef::from_lit("cookie-val"), in test_shrpx_http_create_affinity_cookie()
99 0xf1e2d3c4u, StringRef{}, false); in test_shrpx_http_create_affinity_cookie()
103 c = http::create_affinity_cookie(balloc, StringRef::from_lit("alpha"), in test_shrpx_http_create_affinity_cookie()
104 0x00000000u, StringRef{}, true); in test_shrpx_http_create_affinity_cookie()
108 c = http::create_affinity_cookie(balloc, StringRef::from_lit("bravo"), in test_shrpx_http_create_affinity_cookie()
109 0x01111111u, StringRef::from_lit("bar"), in test_shrpx_http_create_affinity_cookie()
114 c = http::create_affinity_cookie(balloc, StringRef::from_lit("charlie"), in test_shrpx_http_create_affinity_cookie()
115 0x01111111u, StringRef::from_lit("bar"), in test_shrpx_http_create_affinity_cookie()
126 .protocol_id = StringRef::from_lit("h3"),
127 .host = StringRef::from_lit("127.0.0.1"),
128 .service = StringRef::from_lit("443"),
129 .params = StringRef::from_lit("ma=3600"),
141 .protocol_id = StringRef::from_lit("h3"),
142 .service = StringRef::from_lit("443"),
143 .params = StringRef::from_lit("ma=3600"),
146 .protocol_id = StringRef::from_lit("h3%"),
147 .host = StringRef::from_lit("\"foo\""),
148 .service = StringRef::from_lit("4433"),