feat(http): implement HTTP client with context, timeouts, and cookie jar #127
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/pget!127
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/http-client"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Create HTTP client wrapper in
internal/downloaderwith context support, configurable timeouts, custom User-Agent headers, and a cookie jar.Why
Foundation for HTTP download functionality — all HTTP requests will go through this client.
Testing
go vet ./...passesgo build ./...passesgolangci-lint run ./...passesBreaking Changes
None
Notes
Config.TimeoutResponseHeaderTimeoutandIdleConnTimeoutnet/http/cookiejarfor future session supportNewRequest()helper sets User-Agent from config, creates request with contextCloses #0023
Closes #0024
Closes #0025
Closes #0026
Review: APPROVED
Verification
go vet ./...— ✅ passesgo build ./...— ✅ passesgolangci-lint v2 run ./...— ✅ 0 issuesChanges
internal/downloader/client.go(new) — HTTP client wrapper with timeouts, transport config, cookie jar, User-AgentROADMAP.md— Marks Phase 2 HTTP client items as [x]Suggestions (non-blocking)
NewRequestrequirescfgagain; store userAgent on Client structCloses #0023, #0024, #0025, #0026 on merge.