しかしそう簡単ではない可能性があります[ノー成功に等々responseSizeのような変数を試してみました] )。テストエリアで 、あなたはボディサイズやって回復することができます:ヘッダの `
var size=0;
for (var count in responseBody) {
if(responseBody.hasOwnProperty(count))
size += 1;
}
console.log("BODY SIZE = " + size); // you'll see the correct value in the console for the body part
`
私は郵便配達で見られる値に近づくために管理していませんでした。 `
headers_id=["content-encoding","content-type","date","set-cookie","transfer-encoding","x-mbs-platform-state","x-representation-exclude"];
header_size = 0;
for (var i in headers_id)
{
myHeader=postman.getResponseHeader(headers_id[i]);
console.log("header " + myHeader);
console.log("- size " + myHeader.length);
console.log("- name's size " + headers_id[i].length);
header_size += myHeader.length; //+ headers_id[i].length; // uncomment this part if you want header content's size + header name's size
}
console.log("TOTAL HEADER SIZE = " + header_size);
`
希望これは
アレクサンドル
を支援します。私はいつも同じレスポンスヘッダを持っている(私はheaders_idでそれらすべてを設定)し、これらの中から私が私の場合は