Package org.asynchttpclient
Class Response.ResponseBuilder
- java.lang.Object
-
- org.asynchttpclient.Response.ResponseBuilder
-
-
Constructor Summary
Constructors Constructor Description ResponseBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accumulate(io.netty.handler.codec.http.HttpHeaders headers)
void
accumulate(HttpResponseBodyPart bodyPart)
void
accumulate(HttpResponseStatus status)
@Nullable Response
build()
Build aResponse
instancevoid
reset()
Reset the internal state of this builder.
-
-
-
Method Detail
-
accumulate
public void accumulate(HttpResponseStatus status)
-
accumulate
public void accumulate(io.netty.handler.codec.http.HttpHeaders headers)
-
accumulate
public void accumulate(HttpResponseBodyPart bodyPart)
- Parameters:
bodyPart
- a body part (possibly empty, but will be filtered out)
-
build
@Nullable public @Nullable Response build()
Build aResponse
instance- Returns:
- a
Response
instance
-
reset
public void reset()
Reset the internal state of this builder.
-
-