Interface Stream.Server
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
AStream.Server.Listener
is the passive counterpart of aStream.Server
and receives server-side events happening on an HTTP/3 stream.Nested classes/interfaces inherited from interface org.eclipse.jetty.http3.api.Stream
Stream.Client, Stream.Server
-
Method Summary
Modifier and TypeMethodDescriptionvoid
respond
(HeadersFrame frame, Promise.Invocable<Stream> promise) Responds to a request performed viaSession.Client.newRequest(HeadersFrame, Client.Listener, Promise.Invocable)
, sending the given HEADERS frame containing the response status code and response headers.Methods inherited from interface org.eclipse.jetty.http3.api.Stream
data, demand, disconnect, getId, getSession, read, trailer
-
Method Details
-
respond
Responds to a request performed via
Session.Client.newRequest(HeadersFrame, Client.Listener, Promise.Invocable)
, sending the given HEADERS frame containing the response status code and response headers.- Parameters:
frame
- the HEADERS frame containing the response headerspromise
- thePromise.Invocable
that gets notified when the frame has been sent
-