( event: H3Event, response: Partial<RenderResponse>, )
| 9 | * @returns { Promise<void> } |
| 10 | */ |
| 11 | export async function useGZipCompression( |
| 12 | event: H3Event, |
| 13 | response: Partial<RenderResponse>, |
| 14 | ): Promise<void> { |
| 15 | await compress(event, response, 'gzip') |
| 16 | } |
| 17 | |
| 18 | /** |
| 19 | * Compresses the response with [zlib.deflate]{@link https://www.w3schools.com/nodejs/ref_zlib.asp} |
no test coverage detected