fix: add samesite parameter to set_cookie (#3614)

* Fixes #3609
* Implements samesite parameter of the set_cookie method in the werkzeug module (https://werkzeug.palletsprojects.com/en/0.15.x/wrappers/#werkzeug.wrappers.BaseResponse.set_cookie)
This commit is contained in:
Daniel Däschle
2020-01-15 12:04:11 +01:00
committed by Sebastian Rittau
parent 1b5c2dfa1f
commit 91d000e434

View File

@@ -132,7 +132,7 @@ class BaseResponse:
def make_sequence(self) -> None: ...
def iter_encoded(self) -> Iterator[bytes]: ...
def set_cookie(self, key, value: str = ..., max_age: Optional[Any] = ..., expires: Optional[Any] = ...,
path: str = ..., domain: Optional[Any] = ..., secure: bool = ..., httponly: bool = ...): ...
path: str = ..., domain: Optional[Any] = ..., secure: bool = ..., httponly: bool = ..., samesite: Optional[str] = ...): ...
def delete_cookie(self, key, path: str = ..., domain: Optional[Any] = ...): ...
@property
def is_streamed(self) -> bool: ...