-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding DOWNLOAD_MAXSIZE and DOWNLOAD_WARNSIZE (#227)
* initial version for limiting response size * fix doc * add title for DOWNLOAD_MAXSIZE in doc * fix formatting DOWNLOAD_WARNSIZE in doc * remove extra doc * restore original doc * keep original number of encoding/decoding * fix logic for _body_max_size_exceeded * rewording messages (we don't have expected now) * make args in _process_response are named. * revert original responses.py * move the main logic to handler * merge main * fix params order * add tests for _body_max_size_exceeded * formatting * fix mypy warn * fix mypy warn for settings * tune warn message for dropping a response * Update scrapy_zyte_api/handler.py Co-authored-by: Mikhail Korobov <[email protected]> * Update scrapy_zyte_api/handler.py Co-authored-by: Mikhail Korobov <[email protected]> --------- Co-authored-by: Mikhail Korobov <[email protected]>
- Loading branch information
1 parent
1269ebb
commit 0d18fb0
Showing
2 changed files
with
139 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters