Expect the nine core methods, and a Go bool reading safe and idempotent

This commit is contained in:
2026-09-20 00:32:42 +02:00
parent df8d15aeb6
commit e7a906debf
2 changed files with 19 additions and 8 deletions
+3 -3
View File
@@ -111,9 +111,9 @@ func TestShippedMiscReferenceData(t *testing.T) {
"timezone.weight": regexp.MustCompile(`^[1-9]\d*$`),
"mimetype": regexp.MustCompile(`^[a-z]+/[a-z0-9.+-]+$`),
"mimetype.ext": regexp.MustCompile(`^\.[a-z0-9_-]+$`),
"httpmethod": regexp.MustCompile(`^[A-Za-z][A-Za-z-]*$`),
"httpmethod.safe": regexp.MustCompile(`^(yes|no)$`),
"httpmethod.idempotent": regexp.MustCompile(`^(yes|no)$`),
"httpmethod": regexp.MustCompile(`^(CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PUT|TRACE)$`),
"httpmethod.safe": regexp.MustCompile(`^(true|false)$`),
"httpmethod.idempotent": regexp.MustCompile(`^(true|false)$`),
"port": regexp.MustCompile(`^[1-9]\d{0,4}$`),
"port.service": regexp.MustCompile(`^\S+$`),
"protocol": regexp.MustCompile(`^\S+( \S+)*$`),