Log keq request Infomation to console.
import { request } from "keq";
import debug from "keq-debug";
request.use(debug());
// Set Options
request.use(debug({ requestBody: false, responseBody: false }));
Option | Default | Description |
---|---|---|
requestBody |
false |
Log the request body. |
responseBody |
false |
Log the response body. |
If there is any doubt, it is very welcome to discuss the issue together.