Skip to content

Commit

Permalink
Manage app.set with function Request/Response. See
Browse files Browse the repository at this point in the history
  • Loading branch information
angelozerr committed Sep 29, 2014
1 parent 305da41 commit 878b9b3
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions express.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,43 @@
"!define": {
"!node": {
express: {
"!type": "fn() -> application",
"!type": "fn() -> Application",
"!doc": "Create an express application."
}
},
application: {
Application: {
get: {
"!type": "fn(name: string) -> ?",
"!type": "fn(name: string, function?: fn(req: +Request, req: +Response))",
"!url": "http://expressjs.com/4x/api.html#app.get",
"!doc": "Get setting name value."
},
set: {
"!type": "fn(name: string, value: ?) -> !this",
"!type": "fn(name: string, value: ?) -> !this",
"!url": "http://expressjs.com/4x/api.html#app.set",
"!doc": "Assigns setting name to value."
}
},
Request: {
"!type": "fn()",
prototype : {
"!proto" : "http.IncomingMessage.prototype",
param: {
"!type": "fn(name: string, defaultValue?: ?)",
"!url": "http://expressjs.com/4x/api.html#req.param",
"!doc": "Return the value of param name when present."
}
}
},
Response: {
"!type": "fn()",
prototype : {
"!proto" : "http.ServerResponse.prototype",
send: {
"!type": "fn(body?: ?)",
"!url": "http://expressjs.com/4x/api.html#res.send",
"!doc": "Send a response."
}
}
}
}
}
Expand Down

0 comments on commit 878b9b3

Please sign in to comment.