Get desktop application:
View/edit binary Protocol Buffers messages
The list of rules to apply to requests.
The list of rules to apply to responses.
[#next-free-field: 6]
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 a `on_header_present` case, if value is non-empty it'll be used instead of the header value. If both are empty, no metadata is added. When used for a `on_header_missing` case, a non-empty value must be provided otherwise no metadata is added.
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:
The header that triggers this rule — required.
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>`_.