Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for customizing promises timeout on HTTP GET requests via Play WS API #4

Open
akinsella opened this issue Dec 14, 2012 · 1 comment
Labels

Comments

@akinsella
Copy link
Owner

Ok(withCache(cacheKey, expiration) {
  val jsonFetched = Json.parse(wsRequest.get().await(10000).get.body)
  Json.toJson(body.apply(jsonFetched)).toString()
}).as(JSON)
@akinsella
Copy link
Owner Author

Added call to await(10000) to override 5000ms default value. Need to define some option in getJsonWithCache method signature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant