replace-response

Caddy module that performs replacements in response bodies (by caddyserver)

Replace-response Alternatives

Similar projects and alternatives to replace-response

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better replace-response alternative or higher similarity.

replace-response reviews and mentions

Posts with mentions or reviews of replace-response. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-08-23.
  • The Future of Nginx: Getting Back to Our Open Source Roots
    12 projects | news.ycombinator.com | 23 Aug 2022
    > But there are many scenarios where being able to extend the HTTP server via Lua is more convenient than writing a plugin I would think?

    Well, Caddy is written in Go, so it's only natural to write a plugin in Go. Statically compiled into your binary. We provide a tool called `xcaddy` which is used to produce builds of Caddy with any plugins you need. You just need Go installed on your system to run it, no other dependencies.

    The reason why Lua is used for OpenResty is because writing plugins in C is... not fun.

    You can absolutely do what you described with an HTTP handler module in Caddy. You'd just wrap the req.Body with a reader that watches the bytes as they're copied through the stream, and when you see the part you want to log, you do that.

    We have a replace-response plugin which takes a similar approach, except it manipulates the response as it's being streamed back to the client. https://github.com/caddyserver/replace-response The whole plugin is just one file of Go code.

Stats

Basic replace-response repo stats
1
87
4.9
4 months ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com