Class: Net::HTTP

Inherits:
Object
  • Object
show all
Defined in:
lib/http_logger.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.colorize=(value) ⇒ Object



173
174
175
176
# File 'lib/http_logger.rb', line 173

def self.colorize=(value)
  HttpLogger.deprecate_config("colorize")
  HttpLogger.colorize = value
end

.log_headers=(value) ⇒ Object



168
169
170
171
# File 'lib/http_logger.rb', line 168

def self.log_headers=(value)
  HttpLogger.deprecate_config("log_headers")
  HttpLogger.log_headers = value
end

.logger=(value) ⇒ Object



178
179
180
181
# File 'lib/http_logger.rb', line 178

def self.logger=(value)
  HttpLogger.deprecate_config("logger")
  HttpLogger.logger = value
end

Instance Method Details

#request(request, body = nil, &block) ⇒ Object



186
187
188
189
190
# File 'lib/http_logger.rb', line 186

def request(request, body = nil, &block)
  HttpLogger.perform(self, request, body) do
    request_without_logging(request, body, &block) 
  end
end

#request_without_loggingObject



184
# File 'lib/http_logger.rb', line 184

alias_method :request_without_logging,  :request