Build architecture component of the User-Agent header string. Returns the machine type with prefix "md" and name "arch", if one is available. Common values include "x86_64", "arm64", "i386".
(self)
| 496 | ] |
| 497 | |
| 498 | def _build_architecture_metadata(self): |
| 499 | """ |
| 500 | Build architecture component of the User-Agent header string. |
| 501 | |
| 502 | Returns the machine type with prefix "md" and name "arch", if one is |
| 503 | available. Common values include "x86_64", "arm64", "i386". |
| 504 | """ |
| 505 | if self._platform_machine: |
| 506 | return [ |
| 507 | UserAgentComponent( |
| 508 | 'md', 'arch', self._platform_machine.lower() |
| 509 | ) |
| 510 | ] |
| 511 | return [] |
| 512 | |
| 513 | def _build_language_metadata(self): |
| 514 | """ |
no test coverage detected