public interface HttpResponse
HttpHeaders getHeaders()
@Nullable byte[] getResponseBody()
@Nullable HttpRequest getAssociatedRequest()
default boolean hasInformationalResponseCode()
default boolean hasSuccessResponseCode()
default boolean hasRedirectionResponseCode()
default boolean hasClientErrorResponseCode()
default boolean hasServerErrorResponseCode()
static HttpResponse of(@Nullable Integer status, String responseBody)
static HttpResponse of(@Nullable Integer status, String responseBody, HttpHeaders headers)
static HttpResponse of(@Nullable Integer status)
static HttpResponse of(@Nullable Integer status, HttpHeaders headers)
static HttpResponse of(@Nullable Integer status, String responseBody, HttpRequest associatedRequest)
static HttpResponse of(@Nullable Integer status, String responseBody, HttpRequest associatedRequest, HttpHeaders headers)
static HttpResponse of(@Nullable Integer status, byte[] body, HttpRequest associatedRequest)
static HttpResponse of(@Nullable Integer status, byte[] body, @Nullable HttpRequest associatedRequest, @Nullable HttpHeaders headers)
default HttpResponse withoutRequest()