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 voidaccumulate(io.netty.handler.codec.http.HttpHeaders headers)voidaccumulate(HttpResponseBodyPart bodyPart)voidaccumulate(HttpResponseStatus status)@Nullable Responsebuild()Build aResponseinstancevoidreset()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 aResponseinstance- Returns:
- a
Responseinstance
-
reset
public void reset()
Reset the internal state of this builder.
-
-