thorn.validators¶
-
thorn.validators.ensure_protocol(*allowed)[source]¶ Only allow recipient URLs using specific protocols.
- Example:
- ensure_protocol(‘https’, ‘http://‘)
thorn.validators.ensure_protocol(*allowed)[source]¶Only allow recipient URLs using specific protocols.