MCPcopy Create free account
hub / github.com/cutelyst/cutelyst / emailUtf8

Method emailUtf8

tests/testvalidator.cpp:727–732  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

725 // ***** Endpoint for ValidatorEmail with allowed UTF8 local part and IDN
726 C_ATTR(emailUtf8, :Local :AutoArgs)
727 void emailUtf8(Context *c)
728 {
729 Validator v({new ValidatorEmail(
730 u"field"_s, ValidatorEmail::Valid, ValidatorEmail::AllowUTF8, m_validatorMessages)});
731 checkResponse(c, v.validate(c, Validator::NoTrimming | Validator::BodyParamsOnly));
732 }
733
734 // ***** Endpoint for ValidatorFileSize ******
735 C_ATTR(fileSize, :Local :AutoArgs)

Callers

nothing calls this directly

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected