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

com.github.dadiyang.httpinvoker.requestor.RequestPreprocessor Maven / Gradle / Ivy

The newest version!
package com.github.dadiyang.httpinvoker.requestor;

import java.lang.reflect.Method;

/**
 * pre-process request before send it.
 * 

* we can modify headers, cookies, params or even url of the request before actually send it. * * @author dadiyang * date 2019/1/9 */ public interface RequestPreprocessor { /** * for compatible, we use a ThreadLocal to store current method */ ThreadLocal CURRENT_METHOD_THREAD_LOCAL = new ThreadLocal(); /** * Pre-processing the request * * @param request the request to send */ void process(HttpRequest request); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy