Sha256: 9b5b8c4a7d45e32bcec7b1c313c1a677b1901b0d9cfa13351941c8c48224947e
Contents?: true
Size: 454 Bytes
Versions: 1
Compression:
Stored size: 454 Bytes
Contents
require_relative "session" module HTTPX class Session def initialize(options = EMPTY_HASH, &blk) @options = self.class.default_options.merge(options) @responses = {} @persistent = @options.persistent wrap(&blk) if block_given? end def wrap begin prev_persistent = @persistent @persistent = true yield self ensure @persistent = prev_persistent end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
httpx-0.16.0 | lib/httpx/session2.rb |