This repository contains examples demonstrating how to build and inject custom plugins into the KrakenD API Gateway. These examples cover three types of plugins: HTTP Client, Handler/Server, and Request/Response Modifier.
The repository is structured into three main directories, each containing a specific type of plugin:
The client plugin demonstrates how to create a custom HTTP client that can be integrated into KrakenD. The plugin adds custom logic for handling HTTP requests.
More details and instructions can be found in the client
directory.
The handler/server plugin shows how to create a custom HTTP handler. This plugin allows you to add custom logic to process HTTP requests before they reach the backend.
More details and instructions can be found in the handler
directory.
The request/response modifier plugin illustrates how to create custom request and response modifiers. This plugin can modify the request before it is sent to the backend and the response before it is returned to the client.
More details and instructions can be found in the modifier
directory.
Each plugin directory contains the necessary code and a Makefile
for building the plugin using Docker. Follow the instructions in each directory's README to build and integrate the plugins into your KrakenD setup.
For more information on extending KrakenD with plugins, refer to the official documentation:
This repository aims to provide a starting point for creating your own plugins to extend the functionality of the KrakenD API Gateway. Happy coding!