github.com/MontFerret/ferret@v0.18.0/e2e/tests/static/headers/set.fqlx (about) 1 LET url = @lab.cdn.static + "/api/ts" 2 LET page = DOCUMENT(url, { 3 driver: "http", 4 headers: { 5 "Access-Control-Allow-Origin": "*", 6 "X-Request-Id": "foobar" 7 } 8 }) 9 10 LET el = ELEMENT(page, "#headers") 11 LET actual = JSON_PARSE(el.innerText) 12 LET expected = { 13 "Access-Control-Allow-Origin": ["*"], 14 "X-Request-Id": ["foobar"] 15 } 16 17 RETURN T::EQ({ 18 "Access-Control-Allow-Origin": actual["Access-Control-Allow-Origin"], 19 "X-Request-Id": actual["X-Request-Id"] 20 }, expected)