public enum HttpResponseMode extends Enum<HttpResponseMode>
| Enum Constant and Description |
|---|
AUTO
由具体 API 根据端点类型自动选择缓冲或流式模式。
|
BLOCKING
等待响应体完整读取后再返回,适用于普通同步 REST 调用。
|
STREAM
保持响应连接并逐段消费数据,适用于 SSE 或其他流式响应。
|
| Modifier and Type | Method and Description |
|---|---|
static HttpResponseMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpResponseMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpResponseMode BLOCKING
public static final HttpResponseMode STREAM
public static final HttpResponseMode AUTO
public static HttpResponseMode[] values()
for (HttpResponseMode c : HttpResponseMode.values()) System.out.println(c);
public static HttpResponseMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2026. All rights reserved.