see "modules.js".

"http.js" is a pseudo-module that "modules.js" requires to bootstrap the module loader. You will find the bulk of the work in the HTTP module toward the end of "modules.js". The following code augments the HTTP module so that it provides types and events consistent with the rest of the framework.

logging L48

request L52

requestText L67

requestXml L69

requestDocument L71

resolve L74

relative L82

Request L90

Request inherits from and replaces the prexisting Request defined in modules.js.

Request.init L107

Request.setOption L119

Request.openOptions L180

Request.open L194

Request.send L217

Request.getProgress L234
rturns the percent progress of the download, or undefined if it is in progress but the progress is unknown.
Request.isSynchronous L252
returns whether this is a synchronous HTTP request. true means that send will block until a response is ready; false means that `send will not block and the response will be sent to an event listener like ready, ok, and error.

Request.isAsynchronous L262

Response L270

Request inherits from and replaces the prexisting Request defined in modules.js.

encode L294

keyLeave L326

looseExpression L333

parseLooseUrl L373