Skip to content
Snippets Groups Projects
  1. May 26, 2023
    • ale's avatar
      Add a ServeWithContext() method to httputil · 5afdaf01
      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.
      5afdaf01
  2. Feb 01, 2023
  3. Feb 23, 2022
    • ale's avatar
      Replace gorilla/handlers.ProxyHandler with a simpler implementation · 5ecc19d4
      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.
      5ecc19d4
  4. Dec 06, 2021
  5. Nov 23, 2021
    • ale's avatar
      Fix whitespace · d9ad73ca
      ale authored
      d9ad73ca
    • ale's avatar
      Implement first-path-match ACL semantics · 40588d0f
      ale authored
      We've been actually assuming ACLs were working this way in all our
      configuration files, so better make it so: the first path match in the
      ACL allow list will cause the list iteration to stop (the final result
      will then depend on the CN match).
      40588d0f
  6. Oct 03, 2021
    • ale's avatar
      Add optional support for response gzip compression · 4cabb4df
      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).
      4cabb4df
    • ale's avatar
      Properly parse Content-Type HTTP headers · f1e753e3
      ale authored
      Use mime.ParseMediaType to obtain the main content type.
      f1e753e3
  7. Sep 13, 2021
  8. Jan 10, 2021
  9. Aug 23, 2020
  10. Feb 06, 2020
  11. Aug 15, 2019
  12. Nov 18, 2018
    • ale's avatar
      Add support for opencensus tracing · 1f95fcdd
      ale authored
      Trace requests on client and server HTTP traffic, using a system-wide
      configuration file to control reporting.
      1f95fcdd
  13. Oct 29, 2018
  14. May 24, 2018
  15. Apr 01, 2018
    • ale's avatar
      Minor http server improvements · c1ef74c7
      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
      c1ef74c7
  16. Jan 14, 2018
  17. Dec 19, 2017
  18. Dec 14, 2017
  19. Dec 09, 2017
  20. Dec 03, 2017
  21. Nov 27, 2017
  22. Nov 26, 2017
  23. Nov 23, 2017
    • ale's avatar
      Add server-side TLS helpers · 245211eb
      ale authored
      Includes TLS authentication, to authorize peers
      based on the subject of their X509 certificate.
      245211eb
Loading