@FunctionalInterface public interface HttpFilter
Filter 使用| Modifier and Type | Method and Description |
|---|---|
void |
doFilter(HttpServerRequest req,
HttpServerResponse res,
com.sun.net.httpserver.Filter.Chain chain)
执行过滤
|
void doFilter(HttpServerRequest req, HttpServerResponse res, com.sun.net.httpserver.Filter.Chain chain) throws IOException
req - HttpServerRequest 请求对象,用于获取请求内容res - HttpServerResponse 响应对象,用于写出内容chain - Filter.ChainIOException - IO异常Copyright © 2025. All rights reserved.