Internalize http client management to decouple consumers from httpx #14
Labels
No labels
bug
contribution welcome
duplicate
enhancement
good first issue
help wanted
invalid
question
upstream
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Reference
marvin8/longwei#14
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Currently consumers must construct and pass an httpx.AsyncClient to APClient.
This leaks the HTTP implementation into longwei's public API, making any future
library change (httpx → httpx2) a consumer-breaking event.
Move client creation inside APClient. Consumers pass configuration
(timeout, http2) not a client object. APClient becomes an optional async
context manager for clean resource management.
This is the implementation of the direction noted in #6.
Implements the direction recorded in #6.
Research findings:
Plan of attack: