sdk-typescript
sdk-typescript copied to clipboard
[DRAFT] feat(worker): Add support for HTTP CONNECT Proxy
What was changed
- Added support for HTTP CONNECT Proxy.
- At this point, client side support is only possible by setting an environment variable; this will be improved in a future PR.
Why?
- https://github.com/temporalio/features/issues/323
Example
Add the proxy property on Connection or NativeConnection options. For example:
const connection = await NativeConnection.connect({
address: 'localhost:7233',
proxy: {
type: 'http-connect',
targetHost: '127.0.0.1:8888',
basicAuth: {
username: 'user',
password: 'password',
}
},
});
As part of this, you may want some HTTP CONNECT feature tests. See https://github.com/temporalio/features/pull/448 for the Go and Java ones, and https://github.com/temporalio/features/compare/main...http-connect-proxy-python for the Python one (not yet merged because Python hasn't released the feature yet).