Package org.eclipse.jetty.http3.api
Interface Session.Client
- All Superinterfaces:
Session
- Enclosing interface:
- Session
The client-side HTTP/3 API representing a connection with a server.
Once a Session has been obtained, it can be used to make HTTP/3 requests:
Session session = ...;
HeadersFrame headersFrame = ...;
session.newRequest(headersFrame, new Stream.Listener()
{
@Override
public void onResponse(Stream stream, HeadersFrame frame)
{
// Response headers received.
}
});
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.eclipse.jetty.http3.api.Session
Session.Client, Session.Server -
Method Summary
Modifier and TypeMethodDescriptionnewRequest(HeadersFrame frame, Stream.Client.Listener listener) Makes a request by creating a HTTP/3 stream and sending the given HEADERS frame.Methods inherited from interface org.eclipse.jetty.http3.api.Session
getLocalSocketAddress, getRemoteSocketAddress, getStreams, goAway
-
Method Details
-
newRequest
Makes a request by creating a HTTP/3 stream and sending the given HEADERS frame.
- Parameters:
frame- the HEADERS frame containing the HTTP request headerslistener- the listener that gets notified of stream events- Returns:
- a CompletableFuture that is notified of the stream creation
-