Skip to content

Commit f092e64

Browse files
authored
Remove with_credentials option (#30)
1 parent f981687 commit f092e64

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

aiohttp_sse_client/client.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ def __init__(self, url: str,
6969
7070
:param url: specifies the URL to which to connect
7171
:param option: specifies the settings, if any,
72-
in the form of an Dict[str, Any]. Current only one key supported
73-
- with_credentials: bool, specifies CORS mode to `Use Credentials`
72+
in the form of an Dict[str, Any]. Reserved for future use
7473
:param reconnection_time: wait time before try to reconnect in case
7574
connection broken
7675
:param session: specifies a aiohttp.ClientSession, if not, create
@@ -82,10 +81,6 @@ def __init__(self, url: str,
8281
method.
8382
"""
8483
self._url = URL(url)
85-
if option is not None:
86-
self._with_credentials = option.get('with_credentials', False)
87-
else:
88-
self._with_credentials = False
8984
self._ready_state = READY_STATE_CONNECTING
9085

9186
if session is not None:
@@ -139,11 +134,6 @@ def url(self) -> URL:
139134
"""Return URL to which to connect."""
140135
return self._url
141136

142-
@property
143-
def with_credentials(self) -> bool:
144-
"""Return whether CORS mode set to `User Credentials`."""
145-
return self._with_credentials
146-
147137
@property
148138
def ready_state(self) -> int:
149139
"""Return ready state."""

0 commit comments

Comments
 (0)