Sha256: 4fe33035b7c98bf6a9f5cb79fbb9e2b206485c9636f45d36b8dfa8ffd9f95ab5
Contents?: true
Size: 438 Bytes
Versions: 1
Compression:
Stored size: 438 Bytes
Contents
# frozen_string_literal: true require 'request_handler/error' module RequestHandler class HeaderHandler def initialize(env:) raise MissingArgumentError, env: 'is missing' if env.nil? @headers = Helper.deep_transform_keys_in_object(env.select { |k, _v| k.start_with?('HTTP_') }) do |k| k[5..-1].downcase.to_sym end end def run headers end private attr_reader :headers end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
request_handler-0.8.0 | lib/request_handler/header_handler.rb |