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



183
184
185
186
# File 'lib/http_logger.rb', line 183

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

.log_headers=(value) ⇒ Object



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

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

.logger=(value) ⇒ Object



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

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

Instance Method Details

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



196
197
198
199
200
# File 'lib/http_logger.rb', line 196

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

#request_without_loggingObject



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

alias_method :request_without_logging,  :request