(self, value: PrimitiveData)
| 118 | return [(key, serialised)] |
| 119 | |
| 120 | def _primitive_value_to_str(self, value: PrimitiveData) -> str: |
| 121 | # copied from httpx |
| 122 | if value is True: |
| 123 | return "true" |
| 124 | elif value is False: |
| 125 | return "false" |
| 126 | elif value is None: |
| 127 | return "" |
| 128 | return str(value) |
| 129 | |
| 130 | |
| 131 | _qs = Querystring() |