Skip to main content
Quick navigation

Message Header Removal

Introduction

This interceptor cleanup by removing unnecessary record headers when consume message.

This supports for Fetch Response only.

This should be run in the end of interceptor list.

Configuration

keytypedefaultdescription
topicString.*Topics that match this regex will have the interceptor applied
headerKeyRegexStringRecord header key regex, record header with key matches this regex will be removed

Example

{
"name": "myMessageHeaderRemovalInterceptor",
"pluginClass": "io.conduktor.gateway.interceptor.safeguard.MessageHeaderRemovalPlugin",
"priority": 100,
"config": {
"topic": "topic-.*",
"headerKeyRegex": "headerKey.*"
}
}