Repository navigation
requests-async v0.2.4
🐛 Critical Bug Fix
- Fixed allow_redirects parameter support - Added parameter mapping from requests-style
allow_redirectsto httpxfollow_redirects - Resolved TypeError - Fixed "AsyncClient.request() got an unexpected keyword argument 'allow_redirects'" error
- Full compatibility - Now supports all requests-style redirect handling options
🔧 Technical Changes
- Added parameter mapping in both convenience functions and AsyncSession.request method
- Maintains backward compatibility with existing code
- Proper handling of redirect behavior control
📦 Installation
pip install requests-async==0.2.4✅ Usage
Now works correctly with redirect control:
import requests_async
# Don't follow redirects
response = await requests_async.get(url, allow_redirects=False)
# Follow redirects (default behavior)
response = await requests_async.get(url, allow_redirects=True)🙏 Thanks
This release fixes the allow_redirects parameter bug reported by users. Redirect handling now works as expected!
🤖 Generated with Claude Code