(case: BenchmarkCase)
| 74 | |
| 75 | |
| 76 | def make_fields(case: BenchmarkCase) -> list[tuple[str, str]]: |
| 77 | if case.percent_encoded: |
| 78 | return [(f"field {index}", f"café / {index}" * case.field_size) for index in range(case.fields)] |
| 79 | return [(f"field{index}", "x" * case.field_size) for index in range(case.fields)] |
| 80 | |
| 81 | |
| 82 | def make_chunks(body: bytes, chunk_size: int | None) -> tuple[bytes, ...]: |
no outgoing calls