jetty / jetty.project

Eclipse Jetty® - Web Container & Clients - supports HTTP/2, HTTP/1.1, HTTP/1.0, websocket, servlets, and more
https://eclipse.dev/jetty
Other
3.85k stars 1.91k forks source link

Allow HttpClient to also be configured with an `org.eclipse.jetty.io.NetworkTrafficListener` too. #11491

Open joakime opened 7 months ago

joakime commented 7 months ago

Jetty version(s) 12.0.7

Enhancement Description

Jetty 12.0.7 server allows for the use of a org.eclipse.jetty.io.NetworkTrafficListener on a ServerConnector.

It would be useful to allow allow HttpClient to use the org.eclipse.jetty.io.NetworkTrafficListener.

sbordet commented 7 months ago

NetworkTrafficListener is very old and probably not appropriate anymore, as it only supports Socket so won't be usable now that we also support DatagramSocket.