Class: Net::HTTP
- Inherits:
-
Object
- Object
- Net::HTTP
- Defined in:
- lib/metrics/net.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.colorize=(value) ⇒ Object
191 192 193 194 |
# File 'lib/metrics/net.rb', line 191 def self.colorize=(value) HttpLogger.deprecate_config("colorize") HttpLogger.colorize = value end |
.log_headers=(value) ⇒ Object
186 187 188 189 |
# File 'lib/metrics/net.rb', line 186 def self.log_headers=(value) HttpLogger.deprecate_config("log_headers") HttpLogger.log_headers = value end |
.logger=(value) ⇒ Object
196 197 198 199 |
# File 'lib/metrics/net.rb', line 196 def self.logger=(value) HttpLogger.deprecate_config("logger") HttpLogger.logger = value end |
Instance Method Details
#request(request, body = nil, &block) ⇒ Object
204 205 206 207 208 |
# File 'lib/metrics/net.rb', line 204 def request(request, body = nil, &block) HttpLogger.perform(self, request, body) do request_without_logging(request, body, &block) end end |
#request_without_logging ⇒ Object
202 |
# File 'lib/metrics/net.rb', line 202 alias_method :request_without_logging, :request |