@Override
public void aroundWriteTo(WriterInterceptorContext context) throws IOException, WebApplicationException {
List<Statistics> pipelines = statistics.get();
MultivaluedMap<String, Object> headers = context.getHeaders();
pipelines.forEach(s -> headers.add("x-porcupine-statistics-" + s.getPipelineName(), serializeStatistics(s)));
context.proceed();
}
HttpHeaderStatisticInjector.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:porcupine
作者:
评论列表
文章目录