MCPcopy Create free account
hub / github.com/aws/aws-cli / RawStringUserAgentComponent

Class RawStringUserAgentComponent

awscli/botocore/useragent.py:239–252  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

237
238
239class 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
255class UserAgentString:

Callers 3

to_stringMethod · 0.85
_build_app_idMethod · 0.85
_build_extraMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected