diff --git a/slow/slow.py b/slow/slow.py index 1e6a8f9..6179782 100644 --- a/slow/slow.py +++ b/slow/slow.py @@ -9,6 +9,17 @@ from typing import Any, Awaitable, Callable, Optional PR = re.compile(r"\<([a-zA-Z_][a-zA-Z0-9_]*)\>") +class CORS: + Origins: list[str] + Methods: list[str] + Disabled: bool + + def __init__(self): + self.Disabled = False + self.Origins = [] + self.Methods = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD"] + + class Headers: def __init__(self): self._d: dict[str, str] = {}