feat(usebruno#2441): Set response body function (#3076)

This commit is contained in:
Sergei Karetnikov
2024-09-13 08:18:05 +02:00
committed by GitHub
parent a08573f120
commit 81d8c30d84

View File

@@ -27,6 +27,15 @@ class BrunoResponse {
getResponseTime() {
return this.res ? this.res.responseTime : null;
}
setBody(data) {
if (!this.res) {
return;
}
this.body = data;
this.res.data = data;
}
}
module.exports = BrunoResponse;