header argument is sequence insted of dict

This commit is contained in:
zakkie
2013-02-25 00:41:17 +09:00
parent ea03f7026b
commit dc2c8008d9

View File

@@ -162,8 +162,8 @@ def create_connection(url, timeout=None, **options):
If you set "header" dict object, you can set your own custom header.
>>> conn = create_connection("ws://echo.websocket.org/",
... header={"User-Agent: MyProgram",
... "x-custom: header"})
... header=["User-Agent: MyProgram",
... "x-custom: header"])
timeout: socket timeout time. This value is integer.