goproxy
goproxy copied to clipboard
An HTTP proxy library for Go
Does this lib support HTTP CONNECT chaining? If so, any example would be very useful. Thanks!
As the `http.Response` body is an interface, it may be `nil`. https://github.com/elazarl/goproxy/blob/6741dbfc16a13e515d5f2b485eb4be24692e54de/proxy.go#L164-L167 Here we may want to add a `if resp.Body != nil` ...
I'm trying to figure out how call a function on a given ProxyHttpServer that will return something stored in UserData of the ProxyCtx and I'm having a hard time trying...
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.22.0 to 0.26.0. Commits 8072180 go.mod: update golang.org/x dependencies 6cacac1 go.mod: update tagx:ignore'd golang.org/x dependencies 700cc20 go.mod: update golang.org/x dependencies 4890c57 go.mod: update golang.org/x dependencies 566b44f go.mod:...
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.36.0 to 0.41.0. Commits 6e41cae go.mod: update golang.org/x dependencies 15f7d40 http2: correctly wrap ErrFrameTooLarge in Framer.ReadFrame ef33bc0 internal/http3: use bubbled context in synctest tests 919c6bc http2: use...
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.35.0 to 0.41.0. Commits 6e41cae go.mod: update golang.org/x dependencies 15f7d40 http2: correctly wrap ErrFrameTooLarge in Framer.ReadFrame ef33bc0 internal/http3: use bubbled context in synctest tests 919c6bc http2: use...
Our use case is we do filtering based on the host using goproxy. we use proxy.OnRequest().HandleConnectFunc() to do filtering logic, but for grpc requests the ctx.Req.Host is coming as null...
``` proxy.OnResponse().Do(goproxy.FuncRespHandler(func(resp *http.Response, ctx *goproxy.ProxyCtx) *http.Response { resp.Body = io.NopCloser(bytes.NewBufferString("Hello, world!")) return resp })) ``` its work on "http://xxxxxxx" didnot work on curl "https://xxxxxxx"
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6 to 8. Release notes Sourced from golangci/golangci-lint-action's releases. v8.0.0 Requires golangci-lint version >= v2.1.0 What's Changed Changes feat: use absolute paths by default when using working-directory...
How do I send the request using the req module? https://github.com/imroc/req I need to create a transit server to forward all proxy requests through the req module ``` package main...