Use TLS for HTTP
ProprietaryReplace http.ListenAndServe(addr, handler) with http.ListenAndServeTLS(addr, "cert.pem", "key.pem", handler) to encrypt traffic in transit.
org. openrewrite. golang. codequality. UseTlsForHttpmod run . --recipe= org. openrewrite. golang. codequality. UseTlsForHttpInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.