You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
work/HttpRequestHandler.java

14 lines
340 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package middleware;
/**
* HTTP请求处理器接口
* 装饰器模式的核心组件定义了处理HTTP请求的方法
*/
public interface HttpRequestHandler {
/**
* 处理HTTP请求并返回响应
* @param request HTTP请求对象
* @return HTTP响应对象
*/
HttpResponse handle(HttpRequest request);
}