public class ExNewResponse
extends java.lang.Object
构造器和说明 |
---|
ExNewResponse() |
限定符和类型 | 方法和说明 |
---|---|
ExNewResponse |
body(io.vertx.core.buffer.Buffer body)
配置主体(方便用户修改)
|
ExNewResponse |
body(io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> body)
配置主体(实现流式转发)
|
ExBody |
getBody()
获取主体
|
MultiMap<java.lang.String> |
getHeaders()
获取头集合
|
int |
getStatus()
获取状态
|
ExNewResponse |
header(java.lang.String key,
java.util.List<java.lang.String> values)
配置头(替换)
|
ExNewResponse |
header(java.lang.String key,
java.lang.String... values)
配置头(替换)
|
ExNewResponse |
headerAdd(java.lang.String key,
java.lang.String value)
添加头(添加)
|
ExNewResponse |
headerRemove(java.lang.String... keys)
移除头
|
ExNewResponse |
redirect(int code,
java.lang.String url)
跳转
|
void |
status(int code) |
public void status(int code)
public ExNewResponse header(java.lang.String key, java.lang.String... values)
public ExNewResponse header(java.lang.String key, java.util.List<java.lang.String> values)
public ExNewResponse headerAdd(java.lang.String key, java.lang.String value)
public ExNewResponse headerRemove(java.lang.String... keys)
public ExNewResponse redirect(int code, java.lang.String url)
public ExNewResponse body(io.vertx.core.buffer.Buffer body)
body
- 主体数据public ExNewResponse body(io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> body)
body
- 主体数据public int getStatus()
public MultiMap<java.lang.String> getHeaders()
public ExBody getBody()