Code samples for plugins

This page provides code samples that address some common use cases for plugins.

For more Rust, Go, and C++ plugin samples, see the Service Extensions GitHub repository for plugins.

The plugins feature is in Preview for Media CDN.

Add HTTP request and response headers

The following code samples show how to add HTTP request headers.

C++

#include "proxy_wasm_intrinsics.h"

class