Skip to content

Instantly share code, notes, and snippets.

@netmarkjp
Created October 27, 2012 01:34
Show Gist options
  • Save netmarkjp/3962597 to your computer and use it in GitHub Desktop.
Save netmarkjp/3962597 to your computer and use it in GitHub Desktop.
code template for WS HTTP call (PlayFramework2) [Eclipse > Editor > Template]
return async(play.libs.WS
.url(${var:url})
.get()
.map(new play.libs.F.Function<play.libs.WS.Response, play.mvc.Result>() {
public play.mvc.Result apply(play.libs.WS.Response response) {
return TODO;
}
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment