Get desktop application:
View/edit binary Protocol Buffers messages
The list of rules to apply to requests.
[#next-free-field: 7]
Used in:
The namespace — if this is empty, the filter's namespace will be used.
The key to use within the namespace.
The value to pair with the given key. When used for on_present case, if value is non-empty it'll be used instead of the header value. If both are empty, the header value is used as-is. When used for on_missing case, a non-empty value must be provided.
If present, the header's value will be matched and substituted with this. If there is no match or substitution, the header value is used as-is. This is only used for on_present.
The value's type — defaults to string.
How is the value encoded, default is NONE (not encoded). The value will be decoded accordingly before storing to metadata.
A Rule defines what metadata to apply when a header is present or missing.
Used in:
Specifies that a match will be performed on the value of a header. The header to be extracted.
If the header is present, apply this metadata KeyValuePair. If the value in the KeyValuePair is non-empty, it'll be used instead of the header value.
If the header is not present, apply this metadata KeyValuePair. The value in the KeyValuePair must be set, since it'll be used in lieu of the missing header value.
Whether or not to remove the header after a rule is applied. This prevents headers from leaking.
ValueEncode defines the encoding algorithm.
Used in:
The value is not encoded.
The value is encoded in `Base64 <https://tools.ietf.org/html/rfc4648#section-4>`_. Note: this is mostly used for STRING and PROTOBUF_VALUE to escape the non-ASCII characters in the header.
Used in:
The value is a serialized `protobuf.Value <https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto#L62>`_.