echo
echo copied to clipboard
High performance, minimalist Go web framework
This PR provides an option to anonymize IP: * in context via `Context.AnonymizedIP()` * in (old) logger middleware via `remote_ip_anon` token * in (new) request logger middleware via `AnonymizeRemoteIP` option
## Summary Improves code readability and maintainability of the secure middleware with better user guidance. **Changes:** 1. **Refactor HSTS header construction** - Replace nested `fmt.Sprintf` with slice building and `strings.Join`...
Sorry, I accidentally deleted the local directory I forked from, so I created a new Pull Request! ## Changes Changed the PANIC message to be more specific. `Tests related to...
## Proposal ### 1. Error handling when reading request body: Currently, errors in io.ReadAll(c.Request().Body) are ignored. If the read fails, subsequent handlers may receive an incomplete body, causing unexpected behavior....
## Problem The `matchSubdomain` function incorrectly returns `false` for exact domain matches without wildcards—for example, `http://example.com` vs. `http://example.com`. ## Cause Even if all parts match during iteration, the function still...
# Add RetryMax Middleware for Automatic Request Retries ## Description Implements a new `RetryMax` middleware that provides automatic retry functionality for failed requests, addressing the need for production-ready retry mechanisms...
Currently, `router.insert` only logs a warning when a nil handler is registered, and continues processing. This can lead to runtime panics due to unnoticed misconfiguration. This change makes router registration...
## Summary Addresses issue #2665 by providing comprehensive documentation for the Logger middleware that was previously lacking detailed explanations and examples. ## Changes **📚 Configuration Examples (8 different scenarios):** -...
## Summary Addresses issue #2745 by providing comprehensive documentation for the ContextTimeout middleware, which was completely undocumented despite being the recommended approach for handling request timeouts in Echo. ## Problem...
## Summary Addresses issue #2382 by correcting the misleading comment on `Context.Bind` that did not accurately describe the actual binding behavior. ## Problem The comment on `Context.Bind` in `context.go` was...