Skip to content

Conversation

@guanbinrui
Copy link
Member

Description

This PR adds proxy support to the tid HTTP client by exposing the proxy configuration and using it when creating HTTP clients.

Changes

  • Added getHttpProxy() function in http_pool.nim to expose the proxy configuration
  • Updated tid.nim to use the proxy when creating AsyncHttpClient instances
  • Added debug logging in apiutils.nim and redis_cache.nim for troubleshooting purposes

Motivation

The tid HTTP client was not respecting the proxy configuration set via setHttpProxy(), which could cause issues in environments where proxy usage is required.

Testing

  • Verified that proxy is used when creating HTTP client in tid.nim
  • Tested with proxy configuration enabled
  • Verified debug logging works as expected

Related Issues

- Add getHttpProxy() function to expose proxy configuration from http_pool
- Update tid.nim to use proxy when creating AsyncHttpClient
- Add debug logging statements in apiutils.nim and redis_cache.nim for troubleshooting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants