Builder

public abstract class Builder

Builder for HttpResponse.

Constructors

Link copied to clipboard
public void HttpResponse.Builder()

Functions

Link copied to clipboard
public abstract HttpResponse.Builder body(String body)
Setter for body.
Link copied to clipboard
public abstract HttpResponse build()
Link copied to clipboard
@CanIgnoreReturnValue()
public HttpResponse.Builder clearBody()
Clears the value of body field.
Link copied to clipboard
@CanIgnoreReturnValue()
public HttpResponse.Builder clearHeaders()
Clears the value of headers field.
Link copied to clipboard
public abstract HttpResponse.Builder headers(Map<String, String> headers)
Setter for headers.