Lines Matching refs:spy

4980 …uest=typeof activeXObject!="undefined"?activeXObject:new _XMLHttpRequest(),spy=new XHRSpy(),self=t…
4995 var logXHR=function(){var row=Firebug.Console.log(spy,null,"spy",Firebug.Spy.XHR);
4997 spy.logRow=row
5010 if(name=="Content-Type"){spy.mimeType=value
5011 }spy.responseHeaders.push({name:[name],value:[value]})
5012 …{row:spy.logRow,status:xhrRequest.status==0?"":xhrRequest.status+" "+xhrRequest.statusText,time:du…
5013 row=row||spy.logRow;
5017 }spy.loaded=true;
5025 var handleRequestStatus=function(success,status,time){var row=spy.logRow;
5036 if(spy.loaded){spy=new XHRSpy()
5037 }spy.method=method;
5038 spy.url=url;
5039 spy.async=async;
5040 spy.href=url;
5041 spy.xhrRequest=xhrRequest;
5042 spy.urlParams=parseURLParamsArray(url);
5047 this.send=function(data){spy.data=data;
5052 if(!spy.async){self.readyState=xhrRequest.readyState;
5055 this.setRequestHeader=function(header,value){spy.requestHeaders.push({name:[header],value:[value]});
5270 },render:function(context,parentNode,file){var spy=getAncestorByClass(parentNode,"spyHead");
5271 var spyObject=spy.repObject;
5455 …:"$object.sourceLink"})))))),getCaption:function(spy){return spy.method.toUpperCase()+" "+cropStri… argument
5456 },getFullUri:function(spy){return spy.method.toUpperCase()+" "+spy.getURL() argument
5457 },getStatus:function(spy){var text=""; argument
5458 if(spy.statusCode){text+=spy.statusCode+" "
5459 }if(spy.statusText){return text+=spy.statusText
5464 var spy=getChildByClass(logRow,"spyHead").repObject;
5466 if(hasClass(logRow,"opened")){updateHttpSpyInfo(spy,logRow);
5468 }}else{}}},copyURL:function(spy){copyToClipboard(spy.getURL()) argument
5469 },copyParams:function(spy){var text=spy.postText; argument
5471 }var url=reEncodeURL(spy,text,true);
5473 },copyResponse:function(spy){copyToClipboard(spy.responseText) argument
5474 },openInTab:function(spy){openNewTab(spy.getURL(),spy.postText) argument
5477 },browseObject:function(spy,context){var url=spy.getURL(); argument
5480 },getRealObject:function(spy,context){return spy.xhrRequest argument
5481 },getContextMenuItems:function(spy){var items=[{label:"CopyLocation",command:bindFixed(this.copyURL… argument
5482 if(spy.postText){items.push({label:"CopyLocationParameters",command:bindFixed(this.copyParams,this,
5483 …command:bindFixed(this.copyResponse,this,spy)},"-",{label:"OpenInTab",command:bindFixed(this.openI…
5486 function updateTime(spy){var timeBox=spy.logRow.getElementsByClassName("spyTime").item(0); argument
5487 if(spy.responseTime){timeBox.textContent=" "+formatTime(spy.responseTime)
5488 }}function updateLogRow(spy){updateTime(spy); argument
5489 var statusBox=spy.logRow.getElementsByClassName("spyStatus").item(0);
5490 statusBox.textContent=Firebug.Spy.XHR.getStatus(spy);
5491 removeClass(spy.logRow,"loading");
5492 setClass(spy.logRow,"loaded");
5493 try{var errorRange=Math.floor(spy.xhrRequest.status/100);
5494 if(errorRange==4||errorRange==5){setClass(spy.logRow,"error")
5495 …(exc){}}var updateHttpSpyInfo=function updateHttpSpyInfo(spy,logRow){if(!spy.logRow&&logRow){spy.l… argument
5496 }if(!spy.logRow||!hasClass(spy.logRow,"opened")){return
5497 }if(!spy.params){spy.params=parseURLParams(spy.href+"")
5498 }if(!spy.requestHeaders){spy.requestHeaders=getRequestHeaders(spy)
5499 }if(!spy.responseHeaders&&spy.loaded){spy.responseHeaders=getResponseHeaders(spy)
5501 var netInfoBox=getChildByClass(spy.logRow,"spyHead","netInfoBody");
5502 if(!netInfoBox){var head=getChildByClass(spy.logRow,"spyHead");
5503 netInfoBox=template.tag.append({file:spy},head);
5504 dispatch(template.fbListeners,"initTabBody",[netInfoBox,spy]);
5506 }else{template.updateInfo(netInfoBox,spy,spy.context)
5508 function getRequestHeaders(spy){var headers=[]; argument
5509 var channel=spy.xhrRequest.channel;
5513 }function getResponseHeaders(spy){var headers=[]; argument
5514 try{var channel=spy.xhrRequest.channel;
5517 …BG_ERRORS){FBTrace.sysout("spy.getResponseHeaders; EXCEPTION "+safeGetRequestName(spy.request),exc)