Package com.anthropic.core.http
Object Interceptor.Companion
-
- All Implemented Interfaces:
public class Interceptor.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static Interceptor.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final static InterceptorsyncOnly(HttpClientExecute httpClientExecute)Returns an Interceptor that intercepts synchronous requests using httpClientExecute and throws for asynchronous requests. final static InterceptorasyncOnly(HttpClientExecuteAsync httpClientExecuteAsync)Returns an Interceptor that intercepts asynchronous requests using httpClientExecuteAsync and throws for synchronous requests. -
-
Method Detail
-
syncOnly
final static Interceptor syncOnly(HttpClientExecute httpClientExecute)
Returns an Interceptor that intercepts synchronous requests using httpClientExecute and throws for asynchronous requests.
-
asyncOnly
final static Interceptor asyncOnly(HttpClientExecuteAsync httpClientExecuteAsync)
Returns an Interceptor that intercepts asynchronous requests using httpClientExecuteAsync and throws for synchronous requests.
-
-
-
-