Interface HalfDuplexClient
- All Known Implementing Classes:
OkHttpHttpClient,OkHttpWebSocketClient,OkHttpWebSocketClientForAudio
Deprecated.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.send(HalfDuplexRequest req) Deprecated.Blocking send http request and get the response body.voidsend(HalfDuplexRequest req, ResultCallback<DashScopeResult> callback) Deprecated.io.reactivex.Flowable<DashScopeResult>Deprecated.voidstreamOut(HalfDuplexRequest req, ResultCallback<DashScopeResult> callback) Deprecated.
-
Method Details
-
send
Deprecated.Blocking send http request and get the response body.- Parameters:
req- the user input data and parameters.- Returns:
- The the `DashScopeResult`.
- Throws:
NoApiKeyException- Can not find api keyApiException- The request failed, possibly due to a network or data error.
-
send
void send(HalfDuplexRequest req, ResultCallback<DashScopeResult> callback) throws NoApiKeyException, ApiException Deprecated.- Throws:
NoApiKeyExceptionApiException
-
streamOut
io.reactivex.Flowable<DashScopeResult> streamOut(HalfDuplexRequest req) throws NoApiKeyException, ApiException Deprecated.- Throws:
NoApiKeyExceptionApiException
-
streamOut
void streamOut(HalfDuplexRequest req, ResultCallback<DashScopeResult> callback) throws NoApiKeyException, ApiException Deprecated.- Throws:
NoApiKeyExceptionApiException
-
close
Deprecated.
-