httptoolkit icon indicating copy to clipboard operation
httptoolkit copied to clipboard

Request made with Micronaut HTTP Client not captured

Open recursivecodes opened this issue 3 years ago • 2 comments

When making requests with the Java Micronaut HTTP Client, nothing is captured when attached to the JVM. Other requests that use Apache HTTP client are captured, but the Micronaut Client is ignored.

https://docs.micronaut.io/latest/api/io/micronaut/http/client/netty/DefaultHttpClient.html


Does this affect you too? Click the +:smiley: icon in the top right and add a :+1: on issues to help decide where HTTP Toolkit goes next, or go take a look & vote on the most popular ideas so far.

recursivecodes avatar Apr 12 '22 22:04 recursivecodes

As a workaround, I can use a proxy, but support via the Java agent would be nice!

2022-04-12_18-18-42

recursivecodes avatar Apr 12 '22 22:04 recursivecodes

Interesting, I've never used Micronaut! I'm open to this, absolutely.

Any chance you want to open a PR to add it yourself? The agent code is here: https://github.com/httptoolkit/jvm-http-proxy-agent, you'd typically need to define a transformer (see examples here) which injects some advice class to modify target classes/methods (see here).

Or even just an example test case would be a helpful start (see test-app).

Note that HTTP Toolkit Pro is totally free for contributors!

pimterry avatar Apr 13 '22 07:04 pimterry