B2G/gecko/toolkit/devtools/webconsole/dbg-webconsole-actors.js
/**
 * Creates an actor for a network event.
 *
 * @constructor
 * @param object aNetworkEvent
 *        The network event you want to use the actor for.
 * @param object aWebConsoleActor
 *        The parent WebConsoleActor instance for this object.
 */
Creates an actor for a network event.
@constructor
@param object aNetworkEvent
The network event you want to use the actor for.
@param object aWebConsoleActor
The parent WebConsoleActor instance for this object.
Creates an actor for a network event . @constructor @param object aNetworkEvent The network event you want to use the actor for . @param object aWebConsoleActor The parent WebConsoleActor instance for this object .
function NetworkEventActor(aNetworkEvent, aWebConsoleActor)
{
  this.parent = aWebConsoleActor;
  this.conn = this.parent.conn;
  this._startedDateTime = aNetworkEvent.startedDateTime;
  this._request = {
    method: aNetworkEvent.method,
    url: aNetworkEvent.url,
    httpVersion: aNetworkEvent.httpVersion,
    headers: [],
    cookies: [],
    headersSize: aNetworkEvent.headersSize,
    postData: {},
  };
  this._response = {
    headers: [],
    cookies: [],
    content: {},
  };
  this._timings = {};
  this._discardRequestBody = aNetworkEvent.discardRequestBody;
  this._discardResponseBody = aNetworkEvent.discardResponseBody;
}
function NetworkEventActor ( aNetworkEvent , aWebConsoleActor ) { this . parent = aWebConsoleActor ; this . conn = this . parent . conn ; this . _startedDateTime = aNetworkEvent . startedDateTime ; this . _request = { method : aNetworkEvent . method , url : aNetworkEvent . url , httpVersion : aNetworkEvent . httpVersion , headers : [ ] , cookies : [ ] , headersSize : aNetworkEvent . headersSize , postData : { } , } ; this . _response = { headers : [ ] , cookies : [ ] , content : { } , } ; this . _timings = { } ; this . _discardRequestBody = aNetworkEvent . discardRequestBody ; this . _discardResponseBody = aNetworkEvent . discardResponseBody ; }
Creates an actor for a network event.
Creates an actor for a network event .