# File lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb, line 44 def self.build_request_signature(req) uri = WebMock::Util::URI.heuristic_parse(req.url) uri.path = uri.normalized_path.gsub("[^:]//","/") if req.username uri.user = req.username uri.password = req.password end body = req.body if req.params && req.method == :post body = request_body_for_post_request_with_params(req) end request_signature = WebMock::RequestSignature.new( req.method, uri.to_s, :body => body, :headers => req.headers ) request_signature end