mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-18 08:02:12 +03:00
15 lines
443 B
Python
15 lines
443 B
Python
from app import app
|
|
from flask import make_response
|
|
|
|
|
|
@app.route("/assert-header")
|
|
def assert_header():
|
|
resp = make_response()
|
|
resp.headers["Header1"] = "value1"
|
|
resp.headers["ETag"] = '"33a64df551425fcc55e4d42a148795d9f25f89d4"'
|
|
resp.headers["Expires"] = "Wed, 21 Oct 2015 07:28:00 GMT"
|
|
resp.set_cookie("cookie1", "value1")
|
|
resp.set_cookie("cookie2", "value2")
|
|
resp.set_cookie("cookie3", "value3")
|
|
return resp
|