diff --git a/osbot_fast_api/utils/Fast_API__Request.py b/osbot_fast_api/utils/Fast_API__Request.py index cb98f89..2d654d7 100644 --- a/osbot_fast_api/utils/Fast_API__Request.py +++ b/osbot_fast_api/utils/Fast_API__Request.py @@ -41,6 +41,11 @@ def set_cookie(self, key, value): self.set_header('cookie', f'{key}={value}') return self + def set_cookies(self, items): + for key, value in items: + self.set_header('cookie', f'{key}={value}') + return self + def set_header(self, key, value): self.scope_headers[key] = value return self