Skip to content

Conversation

eliashaeussler
Copy link
Owner

This PR adds a new crawler option write_response_body which defaults to false. When disabled, crawling responses won't get the response body attached. Instead, response body is written to a NullStream which discards all received data.

Since this changes existing behavior, it is considered breaking. Consumers relying on the availability of the actual response body can restore original behavior by setting the crawler option to true.

@eliashaeussler eliashaeussler added enhancement New feature or request breaking This introduces a breaking change labels Dec 19, 2024
@eliashaeussler eliashaeussler self-assigned this Dec 19, 2024
Copy link

qlty-cloud-legacy bot commented Dec 19, 2024

Code Climate has analyzed commit 4658c84 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 90.6% (0.1% change).

View more on Code Climate.

@coveralls
Copy link
Collaborator

coveralls commented Dec 19, 2024

Pull Request Test Coverage Report for Build 12418260496

Details

  • 35 of 35 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 90.625%

Totals Coverage Status
Change from base Build 12413479981: 0.2%
Covered Lines: 1624
Relevant Lines: 1792

💛 - Coveralls

@eliashaeussler eliashaeussler merged commit f7d47a1 into main Dec 19, 2024
21 checks passed
@eliashaeussler eliashaeussler deleted the feature/null-stream branch December 19, 2024 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking This introduces a breaking change enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants