public interface HalfDuplexClient
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
close(int code,
String reason) |
DashScopeResult |
send(HalfDuplexRequest req)
Blocking send http request and get the response body.
|
void |
send(HalfDuplexRequest req,
ResultCallback<DashScopeResult> callback) |
io.reactivex.Flowable<DashScopeResult> |
streamOut(HalfDuplexRequest req) |
void |
streamOut(HalfDuplexRequest req,
ResultCallback<DashScopeResult> callback) |
DashScopeResult send(HalfDuplexRequest req) throws NoApiKeyException, ApiException
req - the user input data and parameters.NoApiKeyException - Can not find api keyApiException - The request failed, possibly due to a network or data error.void send(HalfDuplexRequest req, ResultCallback<DashScopeResult> callback) throws NoApiKeyException, ApiException
io.reactivex.Flowable<DashScopeResult> streamOut(HalfDuplexRequest req) throws NoApiKeyException, ApiException
void streamOut(HalfDuplexRequest req, ResultCallback<DashScopeResult> callback) throws NoApiKeyException, ApiException
boolean close(int code,
String reason)
Copyright © 2025. All rights reserved.