Sha256: 398f9abf63302c1eaca92af0c6017a334274918fc89615ca9a1e97b171b8a1b1
Contents?: true
Size: 373 Bytes
Versions: 52
Compression:
Stored size: 373 Bytes
Contents
module Celerity class IgnoringWebConnection < HtmlUnit::Util::FalsifyingWebConnection def initialize(web_client, pattern) super(web_client) @pattern = pattern end def getResponse(request_settings) return super unless request_settings.getUrl.toString =~ @pattern createWebResponse(request_settings, "", "text/html") end end end
Version data entries
52 entries across 52 versions & 9 rubygems