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

Version Path
lhc-12.1.1 lib/lhc/format.rb
lhc-12.1.0 lib/lhc/format.rb
lhc-12.0.3 lib/lhc/format.rb
lhc-12.0.2 lib/lhc/format.rb
lhc-12.0.1 lib/lhc/format.rb
lhc-12.0.0 lib/lhc/format.rb
lhc-11.2.0 lib/lhc/format.rb
lhc-11.1.1 lib/lhc/format.rb
lhc-11.1.0 lib/lhc/format.rb
lhc-11.0.2 lib/lhc/format.rb
lhc-11.0.1 lib/lhc/format.rb
lhc-11.0.0 lib/lhc/format.rb
lhc-10.5.4 lib/lhc/format.rb
lhc-10.5.3 lib/lhc/format.rb
lhc-10.5.2 lib/lhc/format.rb
lhc-10.5.1 lib/lhc/format.rb
lhc-10.5.0 lib/lhc/format.rb
lhc-10.4.3 lib/lhc/format.rb
lhc-10.4.2 lib/lhc/format.rb
lhc-10.4.1 lib/lhc/format.rb