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

Support sending raw HTTP request in reference client #737

Merged
merged 3 commits into from
Dec 14, 2023

Conversation

jhump
Copy link
Member

@jhump jhump commented Dec 13, 2023

This still expects the test case to include a normal request, too. That allows us to continue using the "expected response" computation, based on the request. But we can then override the actual HTTP request, to simulate some behavior (mainly around on-the-wire encoding) that the reference client doesn't usually exhibit. The main things that are not possible with raw requests are the ability to do cancellations or to introduce delays between writes.

It's kinda big. Sorry about that. That is partially because the raw request body helpers I added to the internal package never had tests, so this PR also backfills those tests.

@jhump jhump requested a review from smaye81 December 13, 2023 21:49
@jhump jhump merged commit 097eaa4 into main Dec 14, 2023
6 checks passed
@jhump jhump deleted the jh/raw-req-in-refclient branch December 14, 2023 14:40
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