Represents a parsed user agent header value.
The default implementation does no parsing, only the string
attribute is set. A subclass may parse the string to set the
common attributes or expose other information. Set
werkzeug.wrappers.Request.user_agent_class
to use a
subclass.
Parameters | |
string | The header value to parse. |
Method | __bool__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | __str__ |
Undocumented |
Method | to_header |
Convert to a header value. |
Class Variable | browser |
The browser name, if it could be parsed from the string. |
Class Variable | language |
The browser language, if it could be parsed from the string. |
Class Variable | platform |
The OS name, if it could be parsed from the string. |
Class Variable | version |
The browser version, if it could be parsed from the string. |
Instance Variable | string |
The original header value. |
werkzeug.useragents._UserAgent
Undocumented
Parameters | |
string:str | Undocumented |
t.Optional[ str]
=
werkzeug.useragents._UserAgent
t.Optional[ str]
=
werkzeug.useragents._UserAgent
t.Optional[ str]
=
werkzeug.useragents._UserAgent
t.Optional[ str]
=
werkzeug.useragents._UserAgent