gitbeaker icon indicating copy to clipboard operation
gitbeaker copied to clipboard

Http Proxy?

Open cosydney opened this issue 1 year ago • 3 comments

Description Can we pass a proxy to a Gitbeaker api client?

I've seen this issue https://github.com/jdalrymple/gitbeaker/issues/2014 and this PR: https://github.com/jdalrymple/gitbeaker/pull/2482 but it's not completely clear if it's feasible or not.

Thank you

Checklist

  • [x] I have checked that this is not a duplicate issue.
  • [x] I have read the documentation.

cosydney avatar May 04 '23 12:05 cosydney

Currently I'm unsure. With the switch to the native fetch lib for all the requests, im not sure how it handles proxying. I asked that question on the PR proposed but didnt receive a response.

jdalrymple avatar May 04 '23 15:05 jdalrymple

Did some digging, its a feature thats in the works! https://github.com/nodejs/node/issues/43187

jdalrymple avatar May 04 '23 16:05 jdalrymple

The underlying logic does support it, but the node impl doesnt expose this. I think they mention a work around, though it seems a bit hacky haha. BUT! There are these changes that do look promising and might be released soon with a much nicer impl.

jdalrymple avatar May 04 '23 16:05 jdalrymple