MicroProfile Rest Client 1.2.1
MicroProfile Rest Client Spec PDF
MicroProfile Rest Client Spec HTML
MicroProfile Rest Client Spec Javadocs
To add to you Maven pom.xml file:
<dependency>
<groupId>org.eclipse.microprofile.rest.client</groupId>
<artifactId>microprofile-rest-client-api</artifactId>
<version>1.2.1</version>
</dependency>
Key features:
- Generate headers en masse, including propagation of headers from inbound JAX-RS requests.
- New
@ClientHeaderParamAPI for defining HTTP headers without modifying the client interface method signature. - New section documenting the integration of MP Rest Client with other MP technologies - including CDI interceptors and Fault Tolerance.
- Clarification on built-in JSON-B/JSON-P entity providers.
- Declare the base URI directly from the
@RegisterRestClientannotation with the newbaseUriproperty. - Portable control of connection and read timeouts using new
connectTimeoutandreadTimeoutmethods onRestClientBuilderand corresponding MP Config properties. - Client filters can obtain the Rest Client interface method being invoked via a new property in the
ClientRequestContext. - New SPI interface,
RestClientListenerinterface for intercepting new client instances. - New
removeContextmethod inAsyncInvocationInterceptorinterface for clearing contexts from the async thread.
Updates since 1.2.0: