mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
fix Header docs
This commit is contained in:
parent
56b9ec0974
commit
560fc756aa
@ -44,9 +44,9 @@ class Headers(MultiDict):
|
|||||||
|
|
||||||
# Headers can also be created from a list of raw (header_name, header_value) byte tuples
|
# Headers can also be created from a list of raw (header_name, header_value) byte tuples
|
||||||
>>> h = Headers([
|
>>> h = Headers([
|
||||||
[b"Host",b"example.com"],
|
(b"Host",b"example.com"),
|
||||||
[b"Accept",b"text/html"],
|
(b"Accept",b"text/html"),
|
||||||
[b"accept",b"application/xml"]
|
(b"accept",b"application/xml")
|
||||||
])
|
])
|
||||||
|
|
||||||
# Multiple headers are folded into a single header as per RFC7230
|
# Multiple headers are folded into a single header as per RFC7230
|
||||||
|
Loading…
Reference in New Issue
Block a user