OXIESEC PANEL
- Current Dir:
/
/
usr
/
local
/
lib
/
python3.6
/
dist-packages
/
werkzeug
Server IP: 10.0.0.4
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
09/19/2021 04:38:27 PM
rwxrwxr-x
📄
__init__.py
188 bytes
09/19/2021 04:38:25 PM
rw-r--r--
📁
__pycache__
-
09/19/2021 04:38:27 PM
rwxr-xr-x
📄
_internal.py
18.14 KB
09/19/2021 04:38:25 PM
rw-r--r--
📄
_reloader.py
13.62 KB
09/19/2021 04:38:25 PM
rw-r--r--
📄
datastructures.py
95.59 KB
09/19/2021 04:38:25 PM
rw-r--r--
📄
datastructures.pyi
32.98 KB
09/19/2021 04:38:25 PM
rw-r--r--
📁
debug
-
09/19/2021 04:38:27 PM
rwxr-xr-x
📄
exceptions.py
28.01 KB
09/19/2021 04:38:25 PM
rw-r--r--
📄
filesystem.py
1.91 KB
09/19/2021 04:38:25 PM
rw-r--r--
📄
formparser.py
16.98 KB
09/19/2021 04:38:25 PM
rw-r--r--
📄
http.py
44.08 KB
09/19/2021 04:38:25 PM
rw-r--r--
📄
local.py
22.2 KB
09/19/2021 04:38:25 PM
rw-r--r--
📁
middleware
-
09/19/2021 04:38:27 PM
rwxr-xr-x
📄
py.typed
0 bytes
09/19/2021 04:38:25 PM
rw-r--r--
📄
routing.py
82.17 KB
09/19/2021 04:38:25 PM
rw-r--r--
📁
sansio
-
09/19/2021 04:38:27 PM
rwxr-xr-x
📄
security.py
7.97 KB
09/19/2021 04:38:25 PM
rw-r--r--
📄
serving.py
37.14 KB
09/19/2021 04:38:25 PM
rw-r--r--
📄
test.py
46.97 KB
09/19/2021 04:38:25 PM
rw-r--r--
📄
testapp.py
9.25 KB
09/19/2021 04:38:25 PM
rw-r--r--
📄
urls.py
40.06 KB
09/19/2021 04:38:25 PM
rw-r--r--
📄
user_agent.py
1.39 KB
09/19/2021 04:38:25 PM
rw-r--r--
📄
useragents.py
7.09 KB
09/19/2021 04:38:25 PM
rw-r--r--
📄
utils.py
35.91 KB
09/19/2021 04:38:25 PM
rw-r--r--
📁
wrappers
-
09/19/2021 04:38:27 PM
rwxr-xr-x
📄
wsgi.py
32.92 KB
09/19/2021 04:38:25 PM
rw-r--r--
Editing: user_agent.py
Close
import typing as t class UserAgent: """Represents a parsed user agent header value. The default implementation does no parsing, only the :attr:`string` attribute is set. A subclass may parse the string to set the common attributes or expose other information. Set :attr:`werkzeug.wrappers.Request.user_agent_class` to use a subclass. :param string: The header value to parse. .. versionadded:: 2.0 This replaces the previous ``useragents`` module, but does not provide a built-in parser. """ platform: t.Optional[str] = None """The OS name, if it could be parsed from the string.""" browser: t.Optional[str] = None """The browser name, if it could be parsed from the string.""" version: t.Optional[str] = None """The browser version, if it could be parsed from the string.""" language: t.Optional[str] = None """The browser language, if it could be parsed from the string.""" def __init__(self, string: str) -> None: self.string: str = string """The original header value.""" def __repr__(self) -> str: return f"<{type(self).__name__} {self.browser}/{self.version}>" def __str__(self) -> str: return self.string def __bool__(self) -> bool: return bool(self.browser) def to_header(self) -> str: """Convert to a header value.""" return self.string