-
Notifications
You must be signed in to change notification settings - Fork 140
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
Correct RequestSequence response tuple type docs #237
Conversation
The header value is passed to IRequest.setHeader() which accepts strings, not lists of strings.
Codecov Report
@@ Coverage Diff @@
## master #237 +/- ##
=======================================
Coverage 98.86% 98.86%
=======================================
Files 26 26
Lines 2285 2285
Branches 165 165
=======================================
Hits 2259 2259
Misses 14 14
Partials 12 12
Continue to review full report at Codecov.
|
@@ -402,7 +402,7 @@ class RequestSequence(object): | |||
|
|||
- ``code`` is an integer representing the HTTP status code to return. | |||
- ``headers`` is a dictionary mapping :class:`bytes` to :class:`bytes` or | |||
:class:`list` of :class:`bytes`. | |||
:class:`str`. Note that the value is *not* a list. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the format for header items with multiple values?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They cannot be represented in this API. :-/ You could send the semantic equivalent with a comma... *mumble mumble cookies*...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ouch. Okay.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I wasn't able to track the usage of headers
all the way through the code to verify the type but I'm guessing you did that already. I looked at some other recently accepted PRs to see if there are other contribution requirements to satisfy but I didn't see any. So, approved.
Thank you for the review, @exarkun! |
The header value is passed to IRequest.setHeader() which accepts strings, not lists of strings.