π Summary
v0.0.45 focuses on enhancing URL validation, processing, and performance through optimized HTTP request handling, reusable headers, and streamlined code structure. π
π Key Changes
- Introduced
REQUESTS_HEADERS
, a reusable default header for HTTP requests, improving consistency across operations. - Refactored the
is_url
function to include optional session usage for performance gains. - Enhanced URL-checking logic to better handle HTTP methods like
HEAD
andGET
with smarter error filtering. - Upgraded multi-threaded link-checking to utilize sessions, improving reliability and connection stability.
- Updated test coverage with new URLs for validation and consistency checks.
- Standardized URL formatting in documentation/tests by ensuring accurate, redirect-free links.
π― Purpose & Impact
- π Improved Performance: Reduced redundant HTTP initialization with reusable headers and sessions, boosting request efficiency.
- π Increased Reliability: Smarter error handling and session usage help maintain consistent link-checking even with complex URLs.
- π οΈ Simplified Maintenance: Centralized header definitions make future updates easier and more scalable.
- β Better Compatibility: Compliance with site restrictions (like blocking automated requests) ensures smoother functionality.
- π Enhanced User Experience: Standardized URLs eliminate navigation issues, while robust testing assures high confidence in correctness.
Overall, this update ensures faster, more reliable interactions for both developers and end-users when working with URLs. π
What's Changed
- Update URLs to redirects by @glenn-jocher in #373
v0.0.45
requestsHEADERS
constant by @glenn-jocher in #374
Full Changelog: v0.0.44...v0.0.45