Module: Seahorse::Client::NetHttp::Patches Private

Defined in:
lib/seahorse/client/net_http/patches.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Defined Under Namespace

Modules: PatchDefaultContentType

Class Method Summary collapse

Class Method Details

.apply!Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


13
14
15
16
17
18
# File 'lib/seahorse/client/net_http/patches.rb', line 13

def self.apply!
  Net::HTTPGenericRequest.prepend(PatchDefaultContentType)
  return unless RUBY_VERSION < '2.5'

  Net::HTTP::IDEMPOTENT_METHODS_.clear
end