Constructor and Description |
---|
ResponseBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
accumulate(io.netty.handler.codec.http.HttpHeaders headers) |
void |
accumulate(HttpResponseBodyPart bodyPart) |
void |
accumulate(HttpResponseStatus status) |
Response |
build()
Build a
Response instance |
void |
reset()
Reset the internal state of this builder.
|
public void accumulate(HttpResponseStatus status)
public void accumulate(io.netty.handler.codec.http.HttpHeaders headers)
public void accumulate(HttpResponseBodyPart bodyPart)
bodyPart
- a body part (possibly empty, but will be filtered out)public void reset()
Copyright © 2019. All rights reserved.