Sha256: 24389c3d08f3c2ec0647c7b0a23e9d4d34314e12704ff8b9d27df2843557cbd1
Contents?: true
Size: 401 Bytes
Versions: 31
Compression:
Stored size: 401 Bytes
Contents
# typed: strict # frozen_string_literal: true module ShopifyAPI module Utils module HttpUtils class << self extend T::Sig sig { params(headers: T::Hash[String, T.untyped]).returns(T::Hash[String, T.untyped]) } def normalize_headers(headers) headers.to_h { |k, v| [k.downcase.sub("http_", "").gsub("_", "-"), v] } end end end end end
Version data entries
31 entries across 31 versions & 1 rubygems