Skip to content

requests-async v0.2.4

Latest

Choose a tag to compare

@taisuii taisuii released this 05 Aug 03:33

requests-async v0.2.4

🐛 Critical Bug Fix

  • Fixed allow_redirects parameter support - Added parameter mapping from requests-style allow_redirects to httpx follow_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