Annotation Type Client
-
@Documented @Retention(RUNTIME) @Introduction @Type(HttpClientIntroductionAdvice.class) @Recoverable @Singleton public @interface Client
Allows defining declarative HTTP clients and customizing injection for injectingHttpClientimplementations.- Since:
- 1.0
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.Class<? extends HttpClientConfiguration>configurationjava.lang.Class<?>errorTypeio.micronaut.http.HttpVersionhttpVersionThe HTTP version.java.lang.Stringidjava.lang.StringpathThe base URI for the client.java.lang.Stringvalue
-
-
-
-
path
java.lang.String path
The base URI for the client. Only to be used in conjunction withid().- Returns:
- The base URI
- Default:
- ""
-
-
-
configuration
java.lang.Class<? extends HttpClientConfiguration> configuration
- Returns:
- The http client configuration bean to use
- Default:
- io.micronaut.http.client.HttpClientConfiguration.class
-
-