Method
get
(
NodeContext ctx,
ReqOptions options,
ClientRequest.responseListener onres)
Source from the content-addressed store, hash-verified
| 280 | |
| 281 | // http.get(options, [callback]) |
| 282 | public static ClientRequest get( |
| 283 | NodeContext ctx, |
| 284 | ReqOptions options, |
| 285 | ClientRequest.responseListener onres) throws Exception { |
| 286 | |
| 287 | // GET method |
| 288 | options.method = "GET"; |
| 289 | options.httpp = false; |
| 290 | |
| 291 | ClientRequest req = request(ctx, options, onres); |
| 292 | req.end(); |
| 293 | return req; |
| 294 | } |
| 295 | public static ClientRequest get( |
| 296 | NodeContext ctx, |
| 297 | String url, |