Class HTTP3StreamServer
java.lang.Object
org.eclipse.jetty.http3.internal.HTTP3Stream
org.eclipse.jetty.http3.server.internal.HTTP3StreamServer
- All Implemented Interfaces:
Stream
,Stream.Server
,CyclicTimeouts.Expirable
,Attachable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.http3.internal.HTTP3Stream
HTTP3Stream.FrameState
Nested classes/interfaces inherited from interface org.eclipse.jetty.http3.api.Stream
Stream.Client, Stream.Data, Stream.Server
Nested classes/interfaces inherited from interface org.eclipse.jetty.http3.api.Stream.Server
Stream.Server.Listener
-
Constructor Summary
ConstructorsConstructorDescriptionHTTP3StreamServer
(HTTP3Session session, QuicStreamEndPoint endPoint, boolean local) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
notifyFailure
(long error, Throwable failure) protected boolean
notifyIdleTimeout
(TimeoutException timeout) protected void
notifyTrailer
(HeadersFrame frame) void
onRequest
(HeadersFrame frame) respond
(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.Methods inherited from class org.eclipse.jetty.http3.internal.HTTP3Stream
data, demand, getAttachment, getEndPoint, getExpireNanoTime, getId, getIdleTimeout, getSession, hasDemand, isClosed, isLocal, notIdle, onData, onDataAvailable, onFailure, onTrailer, readData, reset, setAttachment, setIdleTimeout, toString, trailer, updateClose, validateAndUpdate, write, writeFrame
-
Constructor Details
-
HTTP3StreamServer
-
-
Method Details
-
onRequest
-
respond
Description copied from interface:Stream.Server
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.- Specified by:
respond
in interfaceStream.Server
- Parameters:
frame
- the HEADERS frame containing the response headers- Returns:
- the
CompletableFuture
that gets notified when the frame has been sent
-
notifyDataAvailable
protected void notifyDataAvailable()- Specified by:
notifyDataAvailable
in classHTTP3Stream
-
notifyTrailer
- Specified by:
notifyTrailer
in classHTTP3Stream
-
notifyIdleTimeout
- Specified by:
notifyIdleTimeout
in classHTTP3Stream
-
notifyFailure
- Specified by:
notifyFailure
in classHTTP3Stream
-