B2G/gecko/netwerk/test/httpserver/test/head_utils.js
/**
 * Creates a new HTTP channel.
 *
 * @param url
 *   the URL of the channel to create
 */
Creates a new HTTP channel.
@param url
the URL of the channel to create
Creates a new HTTP channel . @param url the URL of the channel to create
function makeChannel(url)
{
  var ios = Cc["@mozilla.org/network/io-service;1"]
              .getService(Ci.nsIIOService);
  var chan = ios.newChannel(url, null, null)
                .QueryInterface(Ci.nsIHttpChannel);
  return chan;
}
function makeChannel ( url ) { var ios = Cc [ "@mozilla.org/network/io-service;1" ] . getService ( Ci . nsIIOService ) ; var chan = ios . newChannel ( url , null , null ) . QueryInterface ( Ci . nsIHttpChannel ) ; return chan ; }
Creates a new HTTP channel.
Creates a new HTTP channel .