2020-08-27 10:07:46 +03:00
|
|
|
GET http://localhost:8000/assert-header
|
2022-11-11 16:25:00 +03:00
|
|
|
|
|
|
|
HTTP 200
|
2020-08-27 10:07:46 +03:00
|
|
|
Content-Type: text/html; charset=utf-8
|
|
|
|
Set-Cookie: cookie1=value1; Path=/
|
|
|
|
Set-Cookie: cookie2=value2; Path=/
|
|
|
|
[Asserts]
|
|
|
|
header "Custom" not exists
|
|
|
|
header "Content-Type" exists
|
2022-03-28 19:04:35 +03:00
|
|
|
header "Header1" == "value1"
|
|
|
|
header "ETag" == "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
|
2023-01-31 22:00:55 +03:00
|
|
|
header "Expires" == "Wed, 21 Oct 2015 07:28:00 GMT"
|
|
|
|
header "Expires" toDate "%a, %d %b %Y %H:%M:%S GMT" format "%Y" == "2015"
|
2023-03-17 23:13:33 +03:00
|
|
|
header "Expires" toDate "%a, %d %b %Y %H:%M:%S GMT" daysBeforeNow > 1000
|
2020-08-27 10:07:46 +03:00
|
|
|
header "Set-Cookie" exists
|
2021-06-26 11:00:23 +03:00
|
|
|
header "Set-Cookie" count == 3
|
2020-08-27 10:07:46 +03:00
|
|
|
header "Set-Cookie" includes "cookie1=value1; Path=/"
|
2022-10-24 12:37:11 +03:00
|
|
|
header "Set-Cookie" not includes "cookie4=value4; Path=/"
|