elazarl / goproxy

An HTTP proxy library for Go
BSD 3-Clause "New" or "Revised" License
6k stars 1.09k forks source link

Static target URL #261

Open oliverjanik opened 6 years ago

oliverjanik commented 6 years ago

Can go proxy be configured to proxy a provided url?

E.g. I hit goproxy at http://localhost:8080/cook-me-dinner and it will proxy this request to targetURL+/cook-me-dinner ?

In other words I want to hit goproxy http listener directly not as a proxy and have it resend my requests to configured URL.

elazarl commented 6 years ago

See nonproxyhandler

On Fri, Jan 5, 2018 at 7:51 AM, Oliver Janik notifications@github.com wrote:

Can go proxy be configured to proxy a provided url?

E.g. I hit goproxy at http://localhost:8080/cook-me-dinner and it will proxy this request to targetURL+/cook-me-dinner ?

In other words I want to hit goproxy http listener directly not as a proxy and have it resend my requests to configured URL.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/elazarl/goproxy/issues/261, or mute the thread https://github.com/notifications/unsubscribe-auth/AAP4ooYj95EaXjYfDP4PjQSArmpxFDCEks5tHbh9gaJpZM4RUDyh .