Sha256: 61c47660cb15eb128a060051d0b200452d2c3ebbfb7397c9fa533d83dc30f685
Contents?: true
Size: 572 Bytes
Versions: 48
Compression:
Stored size: 572 Bytes
Contents
# frozen_string_literal: true class LHC::Format private def no_content_type_header!(options) return if (options[:headers].keys & [:'Content-Type', 'Content-Type']).blank? raise 'Content-Type header is not allowed for formatted requests!\nSee https://github.com/local-ch/lhc#formats for more information.' end def no_accept_header!(options) return if (options[:headers].keys & [:Accept, 'Accept']).blank? raise 'Accept header is not allowed for formatted requests!\nSee https://github.com/local-ch/lhc#formats for more information.' end end
Version data entries
48 entries across 48 versions & 1 rubygems