9/11/2023 0 Comments Download gnu terry pratchett![]() This means that we do not need to require kong-pdk in our plugins, as it is automatically made available. The kong object passed into the access method is an instance of the JavaScript PDK provided by the plugin server. I recommend running it now in the background as you keep reading:Īwait (`X-Clacks-Overhead`, "GNU Terry Pratchett") ![]() It might take a minute or two to download the images and build our Node.js environment. You can configure this on your local machine, but to make things easier, I’ve put together a docker– based environment for you to use. ![]() This means that we need a development environment that can run both the Kong Gateway and a Node.js process. The JavaScript plugin support in Kong Gateway works by running a Node.js server on the same machine as Kong Gateway and passing messages back and forth using msgpack. Bootstrapping Your Development Environment To show the power of the new JavaScript PDK, we’re going to implement a plugin that adds X-Clacks-Overhead, a non-standardized HTTP header based on the work of Terry Pratchett to all responses. I’m excited to share that with the Kong Gateway (OSS) 2.4 release, that functionality is now available to you all! Given the number of JavaScript developers in the world and the variety of libraries and debugging tools available, there was only one logical choice. We recently sat down to discuss the language for the next Kong Gateway Plugin Development Kit (PDK).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |