Skip to content

Commit

Permalink
roll to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt committed Jul 30, 2024
1 parent ee58de7 commit 1b0bc6d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions playwright/async_api/_generated.py
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,7 @@ async def fetch(
headers: typing.Optional[typing.Dict[str, str]] = None,
post_data: typing.Optional[typing.Union[typing.Any, str, bytes]] = None,
max_redirects: typing.Optional[int] = None,
max_retries: typing.Optional[int] = None,
timeout: typing.Optional[float] = None
) -> "APIResponse":
"""Route.fetch
Expand Down Expand Up @@ -774,6 +775,9 @@ async def handle(route):
max_redirects : Union[int, None]
Maximum number of request redirects that will be followed automatically. An error will be thrown if the number is
exceeded. Defaults to `20`. Pass `0` to not follow redirects.
max_retries : Union[int, None]
Maximum number of times network errors should be retried. Currently only `ECONNRESET` error is retried. Does not
retry based on HTTP response codes. An error will be thrown if the limit is exceeded. Defaults to `0` - no retries.
timeout : Union[float, None]
Request timeout in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout.

Expand All @@ -789,6 +793,7 @@ async def handle(route):
headers=mapping.to_impl(headers),
postData=mapping.to_impl(post_data),
maxRedirects=max_redirects,
maxRetries=max_retries,
timeout=timeout,
)
)
Expand Down
5 changes: 5 additions & 0 deletions playwright/sync_api/_generated.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,7 @@ def fetch(
headers: typing.Optional[typing.Dict[str, str]] = None,
post_data: typing.Optional[typing.Union[typing.Any, str, bytes]] = None,
max_redirects: typing.Optional[int] = None,
max_retries: typing.Optional[int] = None,
timeout: typing.Optional[float] = None
) -> "APIResponse":
"""Route.fetch
Expand Down Expand Up @@ -784,6 +785,9 @@ def handle(route):
max_redirects : Union[int, None]
Maximum number of request redirects that will be followed automatically. An error will be thrown if the number is
exceeded. Defaults to `20`. Pass `0` to not follow redirects.
max_retries : Union[int, None]
Maximum number of times network errors should be retried. Currently only `ECONNRESET` error is retried. Does not
retry based on HTTP response codes. An error will be thrown if the limit is exceeded. Defaults to `0` - no retries.
timeout : Union[float, None]
Request timeout in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout.

Expand All @@ -800,6 +804,7 @@ def handle(route):
headers=mapping.to_impl(headers),
postData=mapping.to_impl(post_data),
maxRedirects=max_redirects,
maxRetries=max_retries,
timeout=timeout,
)
)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
InWheel = None
from wheel.bdist_wheel import bdist_wheel as BDistWheelCommand

driver_version = "1.46.0-beta-1722264334000"
driver_version = "1.46.0-beta-1722359450000"


def extractall(zip: zipfile.ZipFile, path: str) -> None:
Expand Down

0 comments on commit 1b0bc6d

Please sign in to comment.