Class: Net::HTTP
- Inherits:
-
Object
- Object
- Net::HTTP
- Defined in:
- lib/netnoop/hooks.rb
Instance Method Summary collapse
- #request_with_netnoop(request, body = nil, &block) ⇒ Object (also: #request)
Instance Method Details
#request_with_netnoop(request, body = nil, &block) ⇒ Object Also known as: request
3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/netnoop/hooks.rb', line 3 def request_with_netnoop(request, body = nil, &block) response = request_without_netnoop(request, body, &block) begin uri, method = netnoop_parse_request_details(request) NetNoop::Bucket.instance.add_request( NetNoop::Request.new(uri, method, body, response) ) rescue end response end |