the response header, which contains status code and HTTP headers
the chunks enumerator
Changes the result content type.
Changes the result content type.
For example:
Ok("<text>Hello world</text>").as("text/xml")
the new content type.
the new result
the chunks enumerator
Discards cookies along this result.
Discards cookies along this result.
For example:
Ok("Hello world").discardingCookies("theme")
the new result
Adds values to the flash scope for this result.
Adds values to the flash scope for this result.
For example:
Ok("Hello world").flashing("success" -> "Done!")
the new result
Adds values to the flash scope for this result.
Adds values to the flash scope for this result.
For example:
Ok("Hello world").flashing(flash + ("success" -> "Done!"))
the flash scope to set with this result
the new result
the response header, which contains status code and HTTP headers
the response header, which contains status code and HTTP headers
Adds cookies to this result.
Adds cookies to this result.
For example:
Ok("Hello world").withCookies(Cookie("theme", "blue"))
the cookies to add to this result
the new result
Adds headers to this result.
Adds headers to this result.
For example:
Ok("Hello world").withHeaders(ETAG -> "0")
the headers to add to this result.
the new result
Discards the existing session for this result.
Discards the existing session for this result.
For example:
Ok("Hello world").withNewSession
the new result
Sets a new session for this result, discarding the existing session.
Sets a new session for this result, discarding the existing session.
For example:
Ok("Hello world").withSession("saidHello" -> "yes")
the session to set with this result
the new result
Sets a new session for this result.
Sets a new session for this result.
For example:
Ok("Hello world").withSession(session + ("saidHello" -> "true"))
the session to set with this result
the new result
A chunked result, which defines the response header and a chunks enumerator to send asynchronously to the client.
the response body content type.
the response header, which contains status code and HTTP headers
the chunks enumerator