2022-02-14 11:13:33 +03:00
|
|
|
from app import app
|
2020-08-27 10:07:46 +03:00
|
|
|
from flask import make_response
|
|
|
|
|
2022-02-05 08:56:33 +03:00
|
|
|
|
2020-08-27 10:07:46 +03:00
|
|
|
@app.route("/assert-header")
|
|
|
|
def assert_header():
|
|
|
|
resp = make_response()
|
2022-02-05 08:56:33 +03:00
|
|
|
resp.headers["Header1"] = "value1"
|
|
|
|
resp.headers["ETag"] = '"33a64df551425fcc55e4d42a148795d9f25f89d4"'
|
2023-01-31 22:00:55 +03:00
|
|
|
resp.headers["Expires"] = "Wed, 21 Oct 2015 07:28:00 GMT"
|
2022-02-05 08:56:33 +03:00
|
|
|
resp.set_cookie("cookie1", "value1")
|
|
|
|
resp.set_cookie("cookie2", "value2")
|
|
|
|
resp.set_cookie("cookie3", "value3")
|
2020-08-27 10:07:46 +03:00
|
|
|
return resp
|