- May 26, 2023
-
-
ale authored
It is sometimes useful to control an HTTP server with a Context (e.g. when using an errgroup). NOTE that this function does not install a SIGTERM handler.
-
- Feb 01, 2023
-
-
ale authored
-
- Feb 23, 2022
-
-
ale authored
The ProxyHandler apparently assumes that you're running a gorilla.Mux for request routing, as it sets the URL.Scheme field of the incoming request - which is normally unset. This has the consequence of messing up all sorts of things, including redirects, because the other fields (like Host) of the request URL are still going to be unset.
-
- Dec 06, 2021
-
-
ale authored
-
- Nov 23, 2021
- Oct 03, 2021
-
-
ale authored
The clients already support it (via the default net/http.Transport), and it can be enabled with a configuration parameter. The default is still currently disabled, though there is plan to flip it later to enabled-by-default if it proves to be working as expected in production. We also introduce, via a slight refactoring of the Serve() code, a test of the top-level http.Handler (with the full middleware stack).
-
ale authored
Use mime.ParseMediaType to obtain the main content type.
-
- Sep 13, 2021
-
-
ale authored
It was acting as an upper limit for the request lifetime, which isn't necessary on internal services.
-
- Jan 10, 2021
-
-
ale authored
-
- Aug 23, 2020
-
-
ale authored
-
- Feb 06, 2020
- Aug 15, 2019
-
-
ale authored
-
- Nov 18, 2018
-
-
ale authored
Trace requests on client and server HTTP traffic, using a system-wide configuration file to control reporting.
-
- Oct 29, 2018
- May 24, 2018
-
-
ale authored
Doh, don't know how this was missed until now.
-
- Apr 01, 2018
-
-
ale authored
Fixes include: * only notify systemd after the network socket has been opened * add net/http/pprof debug handlers * add /health endpoint for Prometheus blackbox prober
-
- Jan 14, 2018
-
-
ale authored
Allows users to specify a set of trusted forwarders in the configuration, and then using github.com/gorilla/handlers.ProxyHeaders to rewrite the http.Request parameters according to X-Forwarding-* and X-Real-IP headers.
-
ale authored
Reduces cyclomatic complexity score and makes code more readable.
-
ale authored
-
- Dec 19, 2017
-
-
ale authored
-
- Dec 14, 2017
- Dec 09, 2017
-
-
ale authored
-
- Dec 03, 2017
-
-
ale authored
-
- Nov 27, 2017
- Nov 26, 2017
-
-
ale authored
-
- Nov 23, 2017
-
-
ale authored
Includes TLS authentication, to authorize peers based on the subject of their X509 certificate.
-