Skip to content

Conversation

@jhump
Copy link
Member

@jhump jhump commented Nov 21, 2023

This is a preliminary change that adds a couple of internal helpers that the reference client and server will use and to add a little validation to the test runner related to the use of raw requests and responses.

}
if isReferenceClient {
for _, msg := range resp.Feedback {
for _, msg := range resp.GetFeedback() {
Copy link
Member Author

Choose a reason for hiding this comment

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

This is an unrelated fix. I encountered a nil-pointer-defereference here at one point while developing this arc of work in #682. Since this PR has other changes in the test runner, seemed okay to drop this here.

Comment on lines +35 to +36
// AddTrailers adds all header values in src to dest, but
// it prefixes each header name with http.TrailerPrefix.
Copy link
Member Author

Choose a reason for hiding this comment

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

This is how to add trailers from a server handler with net/http.

Base automatically changed from v1 to main November 27, 2023 22:45
@jhump jhump changed the title V1: Helpers for writing raw HTTP body; handle test cases with raw request/response in test runnerf Helpers for writing raw HTTP body; handle test cases with raw request/response in test runnerf Nov 27, 2023
@jhump jhump force-pushed the jh/raw-req-resp-in-test-runner branch from 663727b to 1fb72ca Compare November 29, 2023 00:20
@jhump jhump enabled auto-merge (squash) November 29, 2023 00:20
@jhump jhump merged commit bb3df5d into main Nov 29, 2023
@jhump jhump deleted the jh/raw-req-resp-in-test-runner branch November 29, 2023 00:25
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.

3 participants