function isHTTPResource(resource) {
    "use strict";
    return isObject(resource) && /^http/i.test(resource.url);
}
Checks if passed resource involves an HTTP url.

@param  Object  resource The PhantomJS HTTP resource object
@return Boolean