Class: Net::HTTP
- Inherits:
-
Object
- Object
- Net::HTTP
- Defined in:
- lib/http_logger.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.colorize=(value) ⇒ Object
174 175 176 177 |
# File 'lib/http_logger.rb', line 174 def self.colorize=(value) HttpLogger.deprecate_config("colorize") HttpLogger.colorize = value end |
.log_headers=(value) ⇒ Object
169 170 171 172 |
# File 'lib/http_logger.rb', line 169 def self.log_headers=(value) HttpLogger.deprecate_config("log_headers") HttpLogger.log_headers = value end |
.logger=(value) ⇒ Object
179 180 181 182 |
# File 'lib/http_logger.rb', line 179 def self.logger=(value) HttpLogger.deprecate_config("logger") HttpLogger.logger = value end |
Instance Method Details
#request(request, body = nil, &block) ⇒ Object
187 188 189 190 191 |
# File 'lib/http_logger.rb', line 187 def request(request, body = nil, &block) HttpLogger.perform(self, request, body) do request_without_logging(request, body, &block) end end |
#request_without_logging ⇒ Object
185 |
# File 'lib/http_logger.rb', line 185 alias_method :request_without_logging, :request |