Registry / http-client / micronaut-http-client

micronaut-http-client

JSON →
library5.0.0javamavenunverified

A non-blocking HTTP client for the Micronaut framework, supporting reactive and declarative client interfaces.

<dependency> <groupId>io.micronaut</groupId> <artifactId>micronaut-http-client</artifactId> <version>5.0.0</version> </dependency>
INSTALL
IMPORT
SIG · MICRONAUT-HTTP-CLI
M
micronaut-http-client
http-clientjavav5.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HttpClient
io.micronaut.http.client.HttpClient

Inject and use the Micronaut HTTP client to make a blocking GET request.

import io.micronaut.http.client.HttpClient; import io.micronaut.http.client.annotation.Client; import jakarta.inject.Singleton; @Singleton public class MyService { @Client("https://api.example.com") private HttpClient httpClient; public String fetchData() { return httpClient.toBlocking().retrieve("/data"); } }
Debug
Known issues
breakingMicronaut 5.x requires Java 17+ and may have breaking changes from 4.x in client configuration.
fix
Update your build to target Java 17 and review the Micronaut 5 migration guide for client API changes.
affects: >=5.0.0
Upgrade
Version history
5.0.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Resources
micronaut-http-client — mvn dependency:get micronaut-http-client · libregistry