Skip to content

Cleanup response.elapsed implementation. - #3345

Merged
lovelydinosaur merged 1 commit into
version-1.0from
refactor-drop-timer
Oct 17, 2024
Merged

Cleanup response.elapsed implementation.#3345
lovelydinosaur merged 1 commit into
version-1.0from
refactor-drop-timer

Conversation

@lovelydinosaur

Copy link
Copy Markdown
Contributor

More internal refactorings, keeping that codebase clean & sharp.

@lovelydinosaurlovelydinosaur added the refactor Issues and PRs related to code refactoring label Oct 10, 2024

@T-256T-256 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
(Also, IMO we can merge it to master branch already.)

@T-256

Copy link
Copy Markdown
Contributor

How can check for elapsed time for unclosed stream?

withhttpx.Client() asclient:
withclient.stream("GET", server.url) asresponse:
elapsed= ??? # `response.started_time` could help?

@lovelydinosaur

Copy link
Copy Markdown
ContributorAuthor

@T-256 That's a valid question, tho let's keep this particular PR focused on this particular piece of internal refactoring.

@lovelydinosaur
lovelydinosaur requested a review from a teamOctober 17, 2024 10:52
@lovelydinosaur
lovelydinosaur merged commit cf042b6 into version-1.0Oct 17, 2024
@lovelydinosaur
lovelydinosaur deleted the refactor-drop-timer branch October 17, 2024 14:29
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactorIssues and PRs related to code refactoring

Development

Successfully merging this pull request may close these issues.

2 participants

@lovelydinosaur@T-256