public class HttpResponse extends Object
Constructor and Description |
---|
HttpResponse(int statusCode,
byte[] content) |
Modifier and Type | Method and Description |
---|---|
byte[] |
content()
Returns the content of the HTTP response.
|
String |
contentAsString()
Returns the content of the HTTP response interpreted as a UTF-8 string.
|
int |
statusCode()
Returns the HTTP status code returned by Couchbase Server.
|
boolean |
success()
Returns true if the status code is 2xx, otherwise false.
|
String |
toString() |
@Stability.Internal public HttpResponse(int statusCode, byte[] content)
public int statusCode()
public byte[] content()
public String contentAsString()
public boolean success()
Copyright © 2024 Couchbase, Inc.. All rights reserved.