pl.allegro.tech.hermes.consumers.consumer.sender.http.DefaultHttpMetadataAppender Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hermes-consumers Show documentation
Show all versions of hermes-consumers Show documentation
Fast and reliable message broker built on top of Kafka.
package pl.allegro.tech.hermes.consumers.consumer.sender.http;
import org.eclipse.jetty.client.Request;
import pl.allegro.tech.hermes.consumers.consumer.Message;
import pl.allegro.tech.hermes.consumers.consumer.trace.MetadataAppender;
public class DefaultHttpMetadataAppender implements MetadataAppender {
@Override
public Request append(Request target, Message message) {
target.headers(httpFields -> message.getExternalMetadata().forEach(httpFields::add));
return target;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy