Files
codeql/ruby/ql/test/library-tests/frameworks/http_clients/HttpClients.ql
Harry Maclean b6ce37b241 Add getURL to HTTP::Client::Request
This member predicate gets dataflow nodes which contribute to the URL of
the request.

Also consolidate the identical tests for each HTTP client.
2021-11-19 11:28:08 +00:00

11 lines
281 B
Plaintext

import codeql.ruby.Concepts
import codeql.ruby.DataFlow
query predicate httpRequests(
HTTP::Client::Request r, string framework, DataFlow::Node url, DataFlow::Node responseBody
) {
r.getFramework() = framework and
r.getURL() = url and
r.getResponseBody() = responseBody
}