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

org.macrocloud.kernel.context.HttpHeadersGetter Maven / Gradle / Ivy

package org.macrocloud.kernel.context;

import org.springframework.http.HttpHeaders;
import org.springframework.lang.Nullable;

import javax.servlet.http.HttpServletRequest;

/**
 * HttpHeaders 获取器,用于跨服务和线程的传递,
 * 

* 暂时不支持 webflux。 * * @author macro */ public interface HttpHeadersGetter { /** * 获取 HttpHeaders * * @return HttpHeaders */ @Nullable HttpHeaders get(); /** * 获取 HttpHeaders * * @param request 请求 * @return HttpHeaders */ @Nullable HttpHeaders get(HttpServletRequest request); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy