Input Headers Matching Rule
masterYou can match incoming gRPC metadata/headers by specifying a headers field inside the input object. Headers are treated as a map of strings, and you can use the same four rules: equals, equals_unordered, contains, and matches.
Important: Only one rule type is applied to headers at a time. If multiple rule types are provided in the headers object, only the first matching rule will be used.
{
"service": "YourService",
"method": "YourMethod",
"input": {
"equals": {
"field1": "value1"
},
"headers": {
"equals": {
"Content-Type": "application/json"
}
}
},
"output": {
"data": {
"result": "success"
}
}
}