Sha256: 363fafe9686d72be59dbed2a697a93523d95b59b5abb4765004b72652b8bb492
Contents?: true
Size: 617 Bytes
Versions: 4
Compression:
Stored size: 617 Bytes
Contents
class WEBrick::HTTPRequest #Function to clean up memory - knj. def destroy arr_hash = [@cookies, @accept, @accept_charset, @accept_encoding, @accept_language, @attributes] arr_hash.each do |val| if val and (val.is_a?(Array) or val.is_a?(Hash)) val.clear end end @config = nil @cookies = nil @accept = nil end end class WEBrick::HTTPResponse #Function to clean up memory - knj. def destroy arr_hash = [@cookies, @header] arr_hash.each do |val| if val and (val.is_a?(Array) or val.is_a?(Hash)) val.clear end end @config = nil @header = nil @cookies = nil end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
knjrbfw-0.0.8 | lib/knj/ext/webrick.rb |
knjrbfw-0.0.7 | lib/knj/ext/webrick.rb |
knjrbfw-0.0.4 | lib/knj/ext/webrick.rb |
knjrbfw-0.0.3 | lib/knj/ext/webrick.rb |