Debian Codegraph @

tests/android/webview/models.py

raw
1 from copy import copy
2
3
4 class Request:
5 def __init__(self, url: str, method: str, headers: dict) -> None:
6 self.url = url
7 self.method = method
8 self.headers = copy(headers)
9
10 def __repr__(self) -> str:
11 return f'Request to {self.url} - {self.method}'
12
13
14 class Response:
15 def __init__(self, url: str, status_code: int, headers: dict) -> None:
16 self.url = url
17 self.status_code = status_code
18 self.headers = headers
19
20 def __repr__(self) -> str:
21 return f'Response from {self.url} - {self.status_code}'