public class ResponseHeader
extends java.lang.Object
Result
,
ResponseHeader
Constructor and Description |
---|
ResponseHeader(int status,
java.util.Map<java.lang.String,java.lang.String> headers) |
ResponseHeader(int status,
java.util.Map<java.lang.String,java.lang.String> headers,
java.lang.String reasonPhrase) |
Modifier and Type | Method and Description |
---|---|
play.api.mvc.ResponseHeader |
asScala() |
java.util.Optional<java.lang.String> |
getHeader(java.lang.String headerName) |
java.util.Map<java.lang.String,java.lang.String> |
headers() |
java.util.Optional<java.lang.String> |
reasonPhrase() |
int |
status() |
ResponseHeader |
withHeader(java.lang.String name,
java.lang.String value) |
ResponseHeader |
withHeaders(java.util.Map<java.lang.String,java.lang.String> newHeaders) |
public ResponseHeader(int status, java.util.Map<java.lang.String,java.lang.String> headers)
public ResponseHeader(int status, java.util.Map<java.lang.String,java.lang.String> headers, java.lang.String reasonPhrase)
public play.api.mvc.ResponseHeader asScala()
public int status()
public java.util.Optional<java.lang.String> reasonPhrase()
public java.util.Optional<java.lang.String> getHeader(java.lang.String headerName)
public java.util.Map<java.lang.String,java.lang.String> headers()
public ResponseHeader withHeader(java.lang.String name, java.lang.String value)
public ResponseHeader withHeaders(java.util.Map<java.lang.String,java.lang.String> newHeaders)