mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-21 23:43:15 +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() {
|
||||
return this.res ? this.res.responseTime : null;
|
||||
}
|
||||
|
||||
setBody(data) {
|
||||
if (!this.res) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.body = data;
|
||||
this.res.data = data;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = BrunoResponse;
|
||||
|
Loading…
Reference in New Issue
Block a user