File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
ruby/ql/lib/codeql/ruby/frameworks/rack/internal Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -94,12 +94,16 @@ module App {
94
94
* proc that takes a single `env` argument and returns a rack response.
95
95
*/
96
96
abstract class App extends TApp {
97
+ /** Gets a textual representation of this element. */
97
98
string toString ( ) { result = "Rack application" }
98
99
100
+ /** Gets the `DataFlow::CallableNode` that will handle requests to this app. */
99
101
abstract CallNode getCall ( ) ;
100
102
103
+ /** Gets the response returned from a request to this app. */
101
104
RP:: PotentialResponseNode getResponse ( ) { result = this .getCall ( ) .getResponse ( ) }
102
105
106
+ /** Gets the `env` parameter passed to this app when it handles a request. */
103
107
DataFlow:: ParameterNode getEnv ( ) { result = this .getCall ( ) .getParameter ( 0 ) }
104
108
}
105
109
Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ module Public {
99
99
result = getHeaderValue ( this , "content-type" )
100
100
}
101
101
102
+ /** Gets the headers returned with this response. */
102
103
DataFlow:: Node getHeaders ( ) { result = this .( Private:: PotentialResponseNode ) .getHeaders ( ) }
103
104
104
105
// TODO: is there a sensible value for this?
You can’t perform that action at this time.
0 commit comments