http: order absent fields first

This makes the absent variants the default initialization for
some implementations.
This commit is contained in:
Emery Hemingway 2024-04-19 10:51:40 +02:00
parent c0239cf322
commit 8ebde104ca
1 changed files with 2 additions and 2 deletions

View File

@ -31,8 +31,8 @@ HttpRequest = <http-request
Headers = {@"Lowercase" symbol: string ...:...} .
QueryValue = @string string / <file @filename string @headers Headers @body bytes> .
RequestBody = @present bytes / @absent #f .
RequestHost = @present string / @absent #f .
RequestBody = @absent #f / @present bytes .
RequestHost = @absent #f / @present string .
# Assertion to handler entity
HttpContext = <request @req HttpRequest @res #:HttpResponse> .