Lines Matching refs:spy

4991 …uest=typeof activeXObject!="undefined"?activeXObject:new _XMLHttpRequest(),spy=new XHRSpy(),self=t…
5006 var logXHR=function(){var row=Firebug.Console.log(spy,null,"spy",Firebug.Spy.XHR);
5008 spy.logRow=row
5021 if(name=="Content-Type"){spy.mimeType=value
5022 }spy.responseHeaders.push({name:[name],value:[value]})
5023 …{row:spy.logRow,status:xhrRequest.status==0?"":xhrRequest.status+" "+xhrRequest.statusText,time:du…
5024 row=row||spy.logRow;
5028 }spy.loaded=true;
5036 var handleRequestStatus=function(success,status,time){var row=spy.logRow;
5047 if(spy.loaded){spy=new XHRSpy()
5048 }spy.method=method;
5049 spy.url=url;
5050 spy.async=async;
5051 spy.href=url;
5052 spy.xhrRequest=xhrRequest;
5053 spy.urlParams=parseURLParamsArray(url);
5058 this.send=function(data){spy.data=data;
5063 if(!spy.async){self.readyState=xhrRequest.readyState;
5066 this.setRequestHeader=function(header,value){spy.requestHeaders.push({name:[header],value:[value]});
5281 },render:function(context,parentNode,file){var spy=getAncestorByClass(parentNode,"spyHead");
5282 var spyObject=spy.repObject;
5466 …:"$object.sourceLink"})))))),getCaption:function(spy){return spy.method.toUpperCase()+" "+cropStri… argument
5467 },getFullUri:function(spy){return spy.method.toUpperCase()+" "+spy.getURL() argument
5468 },getStatus:function(spy){var text=""; argument
5469 if(spy.statusCode){text+=spy.statusCode+" "
5470 }if(spy.statusText){return text+=spy.statusText
5475 var spy=getChildByClass(logRow,"spyHead").repObject;
5477 if(hasClass(logRow,"opened")){updateHttpSpyInfo(spy,logRow);
5479 }}else{}}},copyURL:function(spy){copyToClipboard(spy.getURL()) argument
5480 },copyParams:function(spy){var text=spy.postText; argument
5482 }var url=reEncodeURL(spy,text,true);
5484 },copyResponse:function(spy){copyToClipboard(spy.responseText) argument
5485 },openInTab:function(spy){openNewTab(spy.getURL(),spy.postText) argument
5488 },browseObject:function(spy,context){var url=spy.getURL(); argument
5491 },getRealObject:function(spy,context){return spy.xhrRequest argument
5492 },getContextMenuItems:function(spy){var items=[{label:"CopyLocation",command:bindFixed(this.copyURL… argument
5493 if(spy.postText){items.push({label:"CopyLocationParameters",command:bindFixed(this.copyParams,this,
5494 …command:bindFixed(this.copyResponse,this,spy)},"-",{label:"OpenInTab",command:bindFixed(this.openI…
5497 function updateTime(spy){var timeBox=spy.logRow.getElementsByClassName("spyTime").item(0); argument
5498 if(spy.responseTime){timeBox.textContent=" "+formatTime(spy.responseTime)
5499 }}function updateLogRow(spy){updateTime(spy); argument
5500 var statusBox=spy.logRow.getElementsByClassName("spyStatus").item(0);
5501 statusBox.textContent=Firebug.Spy.XHR.getStatus(spy);
5502 removeClass(spy.logRow,"loading");
5503 setClass(spy.logRow,"loaded");
5504 try{var errorRange=Math.floor(spy.xhrRequest.status/100);
5505 if(errorRange==4||errorRange==5){setClass(spy.logRow,"error")
5506 …(exc){}}var updateHttpSpyInfo=function updateHttpSpyInfo(spy,logRow){if(!spy.logRow&&logRow){spy.l… argument
5507 }if(!spy.logRow||!hasClass(spy.logRow,"opened")){return
5508 }if(!spy.params){spy.params=parseURLParams(spy.href+"")
5509 }if(!spy.requestHeaders){spy.requestHeaders=getRequestHeaders(spy)
5510 }if(!spy.responseHeaders&&spy.loaded){spy.responseHeaders=getResponseHeaders(spy)
5512 var netInfoBox=getChildByClass(spy.logRow,"spyHead","netInfoBody");
5513 if(!netInfoBox){var head=getChildByClass(spy.logRow,"spyHead");
5514 netInfoBox=template.tag.append({file:spy},head);
5515 dispatch(template.fbListeners,"initTabBody",[netInfoBox,spy]);
5517 }else{template.updateInfo(netInfoBox,spy,spy.context)
5519 function getRequestHeaders(spy){var headers=[]; argument
5520 var channel=spy.xhrRequest.channel;
5524 }function getResponseHeaders(spy){var headers=[]; argument
5525 try{var channel=spy.xhrRequest.channel;
5528 …BG_ERRORS){FBTrace.sysout("spy.getResponseHeaders; EXCEPTION "+safeGetRequestName(spy.request),exc)