簡體   English   中英

如何使用嵌入式 Netty 服務器應用程序在 Spring boot 中關閉或重置 http2 流?

[英]How to close or reset a http2 stream in Spring boot with embedded Netty server application?

我們的應用程序在帶有嵌入式 Netty 服務器(啟用 http2)的 Springboot 上運行。 它通過 Rest Apis 公開服務。 在 Rest Api 調用中,我們有一個場景,我們想忽略 http2 請求而不發送任何響應。

我們的環境:使用的 Reactor 版本:reactor-netty-http: 1.0.16 JVM 版本 (java -version): 17.0.1 springBootVersion= 2.6.7

Netty Server 是否支持我們在沒有響應的情況下關閉 http2 流(請求)?

添加一個自定義處理程序,以便在檢測到 http2 並且滿足您想要的其他自定義條件時關閉通道,這是否可行?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM