W3Cschool
恭喜您成為首批注冊用戶
獲得88經驗值獎勵
該過濾器被認為是BETA,API將來可能會更改
ModifyResponseBody
過濾器可用于在將響應正文發(fā)送回客戶端之前對其進行修改。
只能使用Java DSL配置此過濾器
@Bean public RouteLocator routes(RouteLocatorBuilder builder) { return builder.routes() .route("rewrite_response_upper", r -> r.host("*.rewriteresponseupper.org") .filters(f -> f.prefixPath("/httpbin") .modifyResponseBody(String.class, String.class, (exchange, s) -> Mono.just(s.toUpperCase()))).uri(uri) .build(); }
Copyright©2021 w3cschool編程獅|閩ICP備15016281號-3|閩公網安備35020302033924號
違法和不良信息舉報電話:173-0602-2364|舉報郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號
聯系方式:
更多建議: