mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-25 01:14:23 +01:00
feat(usebruno#2441): Set response body function (#3076)
This commit is contained in:
parent
a08573f120
commit
81d8c30d84
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user