talira

GoProxy

Library for building customisable HTTP and HTTPS proxies in Go

open sourceBSD-3-Clausefree

GoProxy is a Go library for building customised, programmable HTTP and HTTPS proxy servers. The proxy is a plain net/http handler, so middleware such as logging or compression stacks on top. It can act only on specific hosts (by equality or regex), modify requests and responses, use a custom http.Transport, and intercept HTTPS (man-in-the-middle with a CA you trust) with an optional certificate cache.

Problems it solves

  • build an HTTP proxy in Go
  • inspect and modify HTTPS traffic in a Go program
  • write a filtering proxy server in Go

Features

  • proxy as a net/http handler with middleware
  • per-host rules by equality or regex
  • request and response manipulation
  • HTTPS interception with a MITM certificate cache
  • custom http.Transport