class UserAgent(_UserAgent):
Represents a parsed user agent header value.
This uses a basic parser to try to extract some information from the header.
werkzeug.user_agent.UserAgent
(note the new module
name) to use a dedicated parser instead.Parameters | |
environ_or_string | The header value to parse, or a WSGI environ containing the header. |
Method | __init__ |
Undocumented |
Inherited from _UserAgent
:
Property | browser |
The browser name, if it could be parsed from the string. |
Property | language |
The browser language, if it could be parsed from the string. |
Property | platform |
The OS name, if it could be parsed from the string. |
Property | version |
The browser version, if it could be parsed from the string. |
Class Variable | _parser |
Undocumented |
Instance Variable | _browser |
Undocumented |
Instance Variable | _language |
Undocumented |
Instance Variable | _platform |
Undocumented |
Instance Variable | _version |
Undocumented |
Inherited from UserAgent
(via _UserAgent
):
Method | __bool__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | __str__ |
Undocumented |
Method | to_header |
Convert to a header value. |
Instance Variable | string |
The original header value. |
werkzeug.useragents._UserAgent.__init__
Undocumented
Parameters | |
environ_or_string:t.Union[ | Undocumented |