UserAgentComponent interface wrapper around ``str``. Use for User-Agent header components that are not constructed from prefix+name+value but instead are provided as strings. No sanitization is performed.
| 237 | |
| 238 | |
| 239 | class RawStringUserAgentComponent: |
| 240 | """ |
| 241 | UserAgentComponent interface wrapper around ``str``. |
| 242 | |
| 243 | Use for User-Agent header components that are not constructed from |
| 244 | prefix+name+value but instead are provided as strings. No sanitization is |
| 245 | performed. |
| 246 | """ |
| 247 | |
| 248 | def __init__(self, value): |
| 249 | self._value = value |
| 250 | |
| 251 | def to_string(self): |
| 252 | return self._value |
| 253 | |
| 254 | |
| 255 | class UserAgentString: |
no outgoing calls
no test coverage detected