Skip to content

Comments

Add HTTP extension module for range downloads#111

Open
Patrick-Ehimen wants to merge 1 commit intoakave-ai:mainfrom
Patrick-Ehimen:feature/httpext-unit-tests
Open

Add HTTP extension module for range downloads#111
Patrick-Ehimen wants to merge 1 commit intoakave-ai:mainfrom
Patrick-Ehimen:feature/httpext-unit-tests

Conversation

@Patrick-Ehimen
Copy link

Summary

  • Implements private/httpext/httpext.py with range_download() functionality
  • Adds HTTPExtClient class with HTTP Range header support
  • Handles 200, 206, and 416 response codes
  • Includes network error handling (timeouts, connection errors)
  • Supports streaming download to file
  • Adds Content-Range header parsing

Test Plan

  • 53 unit tests added covering all functionality
  • 99% code coverage achieved
  • Tests cover various byte ranges (single byte, suffix ranges, large ranges)
  • Tests cover HTTP headers and response handling
  • Tests cover error conditions and edge cases

Closes #105

Implements private/httpext/httpext.py with range_download() functionality:
- HTTPExtClient with HTTP Range header support
- Handles 200, 206, and 416 response codes
- Network error handling (timeouts, connection errors)
- Streaming download to file support
- Content-Range header parsing

Adds comprehensive unit tests (53 tests, 99% coverage) covering:
- Various byte ranges (single byte, suffix ranges, large ranges)
- HTTP headers and response handling
- Error conditions and edge cases

Closes akave-ai#105
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.

CI: Unit Tests for HTTP Extension Module

1 participant