Hello,
How can I do that? Should I set that in return statement? Technically speaking, response headers including status code is able to be set before the first call `out.write`. For the purpose and longer context, see
http://flowersinthesand.github.io/wes/
```java
@BodyParser.Of(BodyParser.TolerantText.class)
public static Result http() {
final Request request = request();
final Response response = response();
// How can I defer this?
return ok(new Chunks<String>(JavaResults.writeString(Codec.utf_8())) {
@Override
public void onReady(Chunks.Out<String> out) {
// The user should be able to set response status code here. e.g. http.setStatus(HttpStatus.NOT_IMPLEMENTED);
new PlayServerHttpExchange(request, response, out);
}
});
}
```
Thanks in advance,