equal
deleted
inserted
replaced
370 } |
370 } |
371 |
371 |
372 /** |
372 /** |
373 * .. function:: loadRemote(url, form, reqtype='GET', sync=false) |
373 * .. function:: loadRemote(url, form, reqtype='GET', sync=false) |
374 * |
374 * |
375 * Asynchronously (unless `async` argument is set to false) load an url or path |
375 * Asynchronously (unless `sync` argument is set to true) load an url or path |
376 * and return a deferred whose callbacks args are decoded according to the |
376 * and return a deferred whose callbacks args are decoded according to the |
377 * Content-Type response header. `form` should be additional form params |
377 * Content-Type response header. `form` should be additional form params |
378 * dictionary, `reqtype` the HTTP request type (get 'GET' or 'POST'). |
378 * dictionary, `reqtype` the HTTP request type (get 'GET' or 'POST'). |
379 */ |
379 */ |
380 function loadRemote(url, form, reqtype, sync) { |
380 function loadRemote(url, form, reqtype, sync) { |