class WebMock::HttpLibAdapters::HTTPClientAdapter

def self.disable!

def self.disable!
  Object.send(:remove_const, :HTTPClient)
  Object.send(:const_set, :HTTPClient, OriginalHttpClient)
  if defined? ::JSONClient
    Object.send(:remove_const, :JSONClient)
    Object.send(:const_set, :JSONClient, OriginalJsonClient)
  end
end

def self.enable!

def self.enable!
  Object.send(:remove_const, :HTTPClient)
  Object.send(:const_set, :HTTPClient, WebMockHTTPClient)
  if defined? ::JSONClient
    Object.send(:remove_const, :JSONClient)
    Object.send(:const_set, :JSONClient, WebMockJSONClient)
  end
end