About

An example HTTP filter plugin written in Go that demonstrates how to build extensions using the Composer Dynamic Module system.

Features

This plugin showcases common HTTP filter operations:

  • Header manipulation: Read, add, and modify request/response headers
  • Body modification: Intercept and rewrite request/response bodies
  • Metadata access: Store and retrieve dynamic metadata and request attributes
  • Metrics: Work with Envoy counters, gauges, and histograms
  • Local replies: Send custom responses directly from the filter

Packaging

This is the embedded version of the plugin, compiled directly into the Composer dynamic module binary. This approach guarantees Go runtime compatibility since the plugin and host are built together with the same toolchain and dependencies.

Usage Examples

Basic Example

Load the example go plugin as an HTTP filter

boe run --extension example