()
| 16 | // /config echoes the config back. Padding the config pushes the response body |
| 17 | // well past the 1024 B threshold so we can observe compression behavior. |
| 18 | function fatConfig() { |
| 19 | const instructions: string[] = [] |
| 20 | for (let i = 0; i < 50; i++) { |
| 21 | instructions.push(`padding-instruction-${i}-${"x".repeat(40)}`) |
| 22 | } |
| 23 | return { |
| 24 | formatter: false, |
| 25 | lsp: false, |
| 26 | username: "compression-test-user", |
| 27 | instructions, |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | describe("HttpApi compression", () => { |
| 32 | describe("encodes responses", () => { |
no test coverage detected