Sha256: a978c9e8a5894cf14aed82d326a185e8a08bb85b1b5bcca3a2306abbe0218022

Contents?: true

Size: 227 Bytes

Versions: 10

Compression:

Stored size: 227 Bytes

Contents

module VersionCake
  class HttpHeaderStrategy < ExtractionStrategy

    def execute(request)
      if request.env.key? "HTTP_#{version_key.upcase}"
        request.env["HTTP_#{version_key.upcase}"]
      end
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
versioncake-4.1.1 lib/versioncake/strategies/http_header_strategy.rb
versioncake-4.1.0 lib/versioncake/strategies/http_header_strategy.rb
versioncake-4.0.2 lib/versioncake/strategies/http_header_strategy.rb
versioncake-4.0.1 lib/versioncake/strategies/http_header_strategy.rb
versioncake-4.0.0 lib/versioncake/strategies/http_header_strategy.rb
versioncake-3.4.0 lib/versioncake/strategies/http_header_strategy.rb
versioncake-3.3.0 lib/versioncake/strategies/http_header_strategy.rb
versioncake-3.2.0 lib/versioncake/strategies/http_header_strategy.rb
versioncake-3.1.0 lib/versioncake/strategies/http_header_strategy.rb
versioncake-3.0.0 lib/versioncake/strategies/http_header_strategy.rb