Sha256: a0a773f644096dad93bc3d7ceea2d500aebc3625b200059abcd70f1a1940eb12
Contents?: true
Size: 544 Bytes
Versions: 3
Compression:
Stored size: 544 Bytes
Contents
# frozen_string_literal: true require "sea_shanty/faraday/middleware" require "sea_shanty/faraday/rack_builder" module SeaShanty module Faraday class Interceptor BUILDER_CLASS_ATTR_NAME = :builder_class def intercept!(request_store) Middleware.request_store = request_store ::Faraday::ConnectionOptions.memoized(BUILDER_CLASS_ATTR_NAME) { RackBuilder } end def remove ::Faraday::ConnectionOptions.memoized(BUILDER_CLASS_ATTR_NAME) { ::Faraday::RackBuilder } end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sea_shanty-0.2.0 | lib/sea_shanty/faraday/interceptor.rb |
sea_shanty-0.1.1 | lib/sea_shanty/faraday/interceptor.rb |
sea_shanty-0.1.0 | lib/sea_shanty/faraday/interceptor.rb |