Merge branch 'develop' of github.com:getinsomnia/insomnia into develop

This commit is contained in:
Gregory Schier
2018-01-29 14:37:01 +08:00

View File

@@ -15,6 +15,9 @@ export function init (
getId (): string {
return renderedRequest._id;
},
getBodyText (): string {
return renderedRequest.body.text;
},
getName (): string {
return renderedRequest.name;
},
@@ -24,6 +27,9 @@ export function init (
getMethod (): string {
return renderedRequest.method;
},
setBodyText (text: string): void {
renderedRequest.body.text = text;
},
setCookie (name: string, value: string): void {
const cookie = renderedRequest.cookies.find(c => c.name === name);
if (cookie) {