Home »
MCQs »
Koa.js MCQs
Which of the following middleware is used to compress the response body before sending it to the client?
33. Which of the following middleware is used to compress the response body before sending it to the client?
- Koa.compression
- Koa.compress
- Koa.compression.app
Answer: B) Koa.compress
Explanation:
koa.compress middleware is used to compress the response body prior to sending it to the client.