Interface Stream.Server
- All Superinterfaces:
 Stream
- Enclosing interface:
 Stream
- 
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceAStream.Server.Listeneris the passive counterpart of aStream.Serverand receives server-side events happening on an HTTP/3 stream.Nested classes/interfaces inherited from interface Stream
Stream.Client, Stream.Server - 
Method Summary
Modifier and TypeMethodDescriptionvoidrespond(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 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.Invocablethat gets notified when the frame has been sent
 
 -