We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Problem:
When asserting http headers, it is verbose to create expected http headers.
Such as:
expectedHeader := http.Header{} expectedHeader.Add("X-If-You-Read-This", "send-a-hadouken-back") requestRecorder.AssertHeaderEqual(t, expectedHeader)
Solution:
A wrapper for creating http.Header and adding the initial key-value pair can be written for conciseness.
requestRecorder.AssertHeaderEqual(t, aduket.ExpectedHeader("X-If-You-Read-This", "send-a-hadouken-back"))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Problem:
When asserting http headers, it is verbose to create expected http headers.
Such as:
Solution:
A wrapper for creating http.Header and adding the initial key-value pair can be written for conciseness.
Such as:
The text was updated successfully, but these errors were encountered: