All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.allegro.tech.hermes.consumers.consumer.sender.http.DefaultHttpMetadataAppender Maven / Gradle / Ivy

There is a newer version: 2.8.0
Show newest version
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