package org.wcs.plugin.webHttpClient.intef;

import org.wcs.plugin.webHttpClient.model.HttpRequest;
import org.wcs.plugin.webHttpClient.model.HttpResponse;

/**
 * HTTP 请求事件接口
 */
public interface IHttpRequestEvent {

    /**
     * 请求之前
     * @param request 请求对象
     */
    void beforeRequest(HttpRequest request);

    /**
     * 请求之后
     * @param request 请求对象
     * @param response 响应对象
     */
    void afterRequest(HttpRequest request, HttpResponse response);


}
