Package io.metaloom.qdrant.client.http
Interface QDrantBinaryResponse
- All Superinterfaces:
AutoCloseable,RestResponse
- All Known Implementing Classes:
QDrantBinaryResponseImpl
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the response body handler.intcode()Return the HTTP status code for the response.Retrieve the content type of the binaryRetrieve the filename of this binarydefault io.reactivex.rxjava3.core.Flowable<byte[]>Retrieve a Flowable which emits byte chunks.Retrieve a blocking input stream of the response body.booleanCheck whether the request was successful.
-
Field Details
-
FLOWABLE_BUFFER_SIZE
static final int FLOWABLE_BUFFER_SIZE- See Also:
-
-
Method Details
-
getStream
InputStream getStream()Retrieve a blocking input stream of the response body. This object must be closed via #close after the stream has been read.- Returns:
-
getFlowable
default io.reactivex.rxjava3.core.Flowable<byte[]> getFlowable()Retrieve a Flowable which emits byte chunks. The response is closed when all bytes have been read. It is advised to not use close or the auto closable manually when working with this Flowable, since the bytes could be emitted asynchronously.- Returns:
-
getFilename
String getFilename()Retrieve the filename of this binary- Returns:
-
getContentType
String getContentType()Retrieve the content type of the binary- Returns:
-
close
void close()Closes the response body handler.- Specified by:
closein interfaceAutoCloseable
-
isSuccessful
boolean isSuccessful()Check whether the request was successful.- Returns:
-
code
int code()Return the HTTP status code for the response.- Returns:
-