Lexical Grammar
integer(used by max-redirs-option, retry-interval-option, retry-max-count-option, variable-value, greater-predicate, greater-or-equal-predicate, less-predicate, less-or-equal-predicate, predicate-value, json-number, float)
@@ -248,7 +246,7 @@ Short description:
-
sp(used by request, response, assert, query, header-query, cookie-query, xpath-query, jsonpath-query, regex-query, variable-query, predicate, equal-predicate, not-equal-predicate, greater-predicate, greater-or-equal-predicate, less-predicate, less-or-equal-predicate, start-with-predicate, end-with-predicate, contain-predicate, match-predicate, include-predicate, expr, regex-filter, lt) [ \t]
+
sp(used by request, response, capture, assert, header-query, cookie-query, xpath-query, jsonpath-query, regex-query, variable-query, predicate, equal-predicate, not-equal-predicate, greater-predicate, greater-or-equal-predicate, less-predicate, less-or-equal-predicate, start-with-predicate, end-with-predicate, contain-predicate, match-predicate, include-predicate, expr, regex-filter, lt) [ \t]
lt(used by hurl-file, request, response, header, body, query-string-params-section, form-params-section, multipart-form-data-section, cookies-section, captures-section, asserts-section, options-section, file-param, capture, assert, option, ca-certificate-option, follow-redirect-option, insecure-option, max-redirs-option, retry-option, retry-interval-option, retry-max-count-option, variable-option, verbose-option, very-verbose-option, multiline-string)
diff --git a/docs/spec/hurl.grammar b/docs/spec/hurl.grammar
index ea58dcf3af7..917e5a36f0d 100644
--- a/docs/spec/hurl.grammar
+++ b/docs/spec/hurl.grammar
@@ -15,11 +15,12 @@ request:
response:
lt*
- version sp status lt
+ "HTTP" version? sp status lt
header*
response-section*
body?
+
method:
"GET"
| "HEAD"
@@ -31,12 +32,10 @@ method:
| "TRACE"
| "PATCH"
-
version:
- "HTTP/1.0"
- | "HTTP/1.1"
- | "HTTP/2"
- | "HTTP"
+ "/1.0"
+ | "/1.1"
+ | "/2"
status: [0-9]+