A DataWeave HTTP module that allows:
- easy execution of HTTP requests and asynchronously processes HTTP responses.
- easy declaration and usage of an HTTP Server.
This library is built on top of AsyncHttpClient (AHC) which is based on Netty.
To enables the DataWeave HTTP Netty module in your project, you need to add the following dependency to the project:
<dependencies>
<dependency>
<groupId>org.mule.weave</groupId>
<artifactId>http-netty-module</artifactId>
<version>${data.weave.http.netty.module}</version>
<version>2.7.0</version>
</dependency>
</dependencies>dependencies {
implementation 'org.mule.weave:http-netty-module:2.7.0'
}To set up the wire logging on your DataWeave HTTP Netty module follow these steps:
- Add an
SL4Jimplementation in your project. - Configure your
SL4Jimplementation. - Turn on the following
logger:
<!-- Enable 'DEBUG' logs for async-http-client -->
<logger name="org.asynchttpclient" level="DEBUG" />
<!-- Enable Netty wire logs -->
<logger name="org.asynchttpclient.netty.channel.ChannelManager" level="TRACE" />
<logger name="io.netty.handler.logging.LoggingHandler" level="TRACE" />Take a look at the following example for details: