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.Data, Stream.Server -
Method Summary
Modifier and TypeMethodDescriptionrespond(HeadersFrame frame) Responds to a request performed viaSession.Client.newRequest(HeadersFrame, Client.Listener), sending the given HEADERS frame containing the response status code and response headers.
-
Method Details
-
respond
Responds to a request performed via
Session.Client.newRequest(HeadersFrame, Client.Listener), sending the given HEADERS frame containing the response status code and response headers.- Parameters:
frame- the HEADERS frame containing the response headers- Returns:
- the
CompletableFuturethat gets notified when the frame has been sent
-