Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breakout reading of request and response prefaces #23

Merged
merged 2 commits into from
Dec 26, 2023

Conversation

zarqman
Copy link
Contributor

@zarqman zarqman commented Sep 19, 2023

This PR splits off reading of the first line of both requests and responses into separate methods. It makes no functional changes.

The intent is to make it easier to inject added functionality after reading the first line (ie: preface) or before reading the headers, most likely via a monkeypatch.

Immediate use case: changing the IO stream timeout before and after reading the preface line.

Related to socketry/async-http#127.

Types of Changes

  • New feature.

Contribution

@ioquatix ioquatix force-pushed the breakout-read-prefaces branch from f28c066 to 490f13b Compare December 26, 2023 12:15
@ioquatix ioquatix merged commit 5290bfb into socketry:main Dec 26, 2023
20 checks passed
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.

2 participants