1
我想假裝一個服務器,其響應是在XML中。我怎樣才能做到這一點?可以sinon fakeserver發送xml響應嗎?
server.respondWith(
"GET",
"testurl",
[
200,
{
"Content-Type": "application/xml",
"Access-Control-Allow-Origin": "*",
"Cache-Control": "max-age=0, must-revalidate",
"Connection": "close"
},
<note></note>
]
);