(request)
| 3 | |
| 4 | |
| 5 | def parse(request): |
| 6 | # pylint: disable=unbalanced-tuple-unpacking |
| 7 | (requires_https,) = json.parse_json_body(request, |
| 8 | required_fields=['requiresHttps']) |
| 9 | |
| 10 | if not isinstance(requires_https, bool): |
| 11 | raise errors.InvalidRequiresHttpsPropError( |
| 12 | 'Property `requiresHttps` is required and must be a boolean.') |
| 13 | return requires_https |
nothing calls this directly
no outgoing calls
no test coverage detected