Skip to content
Myr

Merge pull request #2453 from requiredfield/master

Before adoption: this commit came in with the history the project adopted, so no landing records it.

document combination of repeated response headers

authored by Cory Benfield · committed by Cory Benfield · parents 5a22d20, ed73d9e · Browse files · 1 file+9 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+9 added−0 removed

  • other:+9 added−0 removed

1 file+9 added−0 removed

modified:docs/user/quickstart.rst+9 added
345 unmodified lines
346347 >>> r.headers.get('content-type')348 'application/json'349350It is also special in that the server could have sent the same header multiple351times with different values, but requests combines them so they can be352represented in the dictionary within a single mapping, as per353`RFC 7230 <http://tools.ietf.org/html/rfc7230#section-3.2>`_:354355 > A recipient MAY combine multiple header fields with the same field name356 > into one "field-name: field-value" pair, without changing the semantics357 > of the message, by appending each subsequent field value to the combined358 > field value in order, separated by a comma.359360Cookies361-------362363If a response contains some Cookies, you can quickly access them::
101 unmodified lines