Files
bun.sh/test/js
Claude Bot 8d95ff5d64 Add localAddress support to fetch()
This implementation adds support for the localAddress option in fetch(),
allowing users to bind to a specific local IP address when making HTTP requests.

Key changes:
- Extended fetch options to parse and handle localAddress parameter
- Added local_address field to HTTPClient and AsyncHTTP structures
- Modified HTTP connection logic to use local address when provided
- Extended usockets API with local address binding support
- Implemented socket binding at the BSD level using bind() syscall
- Added comprehensive test coverage for the new functionality

The implementation follows the existing unix socket pattern and provides
graceful fallback to regular connections when local address binding fails.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-25 13:40:58 +00:00
..
2025-08-25 13:40:58 +00:00
2024-12-12 02:07:29 -08:00
2025-08-22 12:08:42 -07:00