Class: Aikido::Zen::Sinks::EventMachine::HttpRequest::Middleware
- Inherits:
-
Object
- Object
- Aikido::Zen::Sinks::EventMachine::HttpRequest::Middleware
- Defined in:
- lib/aikido/zen/sinks/em_http.rb
Instance Method Summary collapse
Instance Method Details
#response(client) ⇒ Object
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/aikido/zen/sinks/em_http.rb', line 72 def response(client) # Store the request information so the DNS sinks can pick it up. context = Aikido::Zen.current_context context["ssrf.request"] = nil if context Scanners::SSRFScanner.track_redirects( request: Scanners::SSRFScanner::Request.new( verb: client.req.method, uri: URI(client.req.uri), headers: client.req.headers ), response: Scanners::SSRFScanner::Response.new( status: client.response_header.status, headers: client.response_header.to_h ) ) end |