recordSource
public record HttpResponse(
    int statusCode,
    String statusMessage,
    Map<String, String> headers,
    byte[] body
)

Record components

statusCodeint

No description.

Accessor: statusCode()
statusMessageString

No description.

Accessor: statusMessage()
headersMap<String, String>

No description.

Accessor: headers()
bodybyte[]

No description.

Accessor: body()

Constructors

public HttpResponse(
    int statusCode,
    String statusMessage,
    Map<String, String> headers,
    byte[] body
)
Parameters
statusCodeint
statusMessageString
headersMap<String, String>
bodybyte[]

Methods

public String getBodyAsString()
Returns
String

Used by

Methods of other types that accept or return HttpResponse.