headers property
The header keys must be lowercase and use hyphen as the separator, e.g. x-request-id.
Header values are case-sensitive and formatted as follows:
- exact: "value" for exact string match
- prefix: "value" for prefix-based match
- regex: "value" for ECMAscript style regex-based match
If the value is empty and only the name of header is specfied, presence of the header is checked. Note: The keys uri, scheme, method, and authority will be ignored.
Implementation
final Map<String, StringMatch>? headers;