mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
微调注释
This commit is contained in:
parent
aebbf4676a
commit
c4b40009a7
@ -163,7 +163,7 @@ class SessionPage(BasePage):
|
|||||||
times: int = 0,
|
times: int = 0,
|
||||||
interval: float = 1,
|
interval: float = 1,
|
||||||
mode: str = 'get',
|
mode: str = 'get',
|
||||||
data: dict = None,
|
data: Union[dict, str] = None,
|
||||||
show_errmsg: bool = False,
|
show_errmsg: bool = False,
|
||||||
**kwargs) -> Response:
|
**kwargs) -> Response:
|
||||||
"""尝试连接,重试若干次 \n
|
"""尝试连接,重试若干次 \n
|
||||||
@ -211,7 +211,7 @@ class SessionPage(BasePage):
|
|||||||
|
|
||||||
def post(self,
|
def post(self,
|
||||||
url: str,
|
url: str,
|
||||||
data: dict = None,
|
data: Union[dict, str] = None,
|
||||||
go_anyway: bool = True,
|
go_anyway: bool = True,
|
||||||
show_errmsg: bool = False,
|
show_errmsg: bool = False,
|
||||||
retry: int = None,
|
retry: int = None,
|
||||||
@ -457,7 +457,7 @@ class SessionPage(BasePage):
|
|||||||
def _make_response(self,
|
def _make_response(self,
|
||||||
url: str,
|
url: str,
|
||||||
mode: str = 'get',
|
mode: str = 'get',
|
||||||
data: dict = None,
|
data: Union[dict, str] = None,
|
||||||
show_errmsg: bool = False,
|
show_errmsg: bool = False,
|
||||||
**kwargs) -> tuple:
|
**kwargs) -> tuple:
|
||||||
"""生成response对象 \n
|
"""生成response对象 \n
|
||||||
|
Loading…
x
Reference in New Issue
Block a user