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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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