Top Constructors Methods
org.eclipse.jetty.http3.client.transport.internal

public Class HttpSenderOverHTTP3

extends HttpSender
Class Inheritance
Imports
java.nio.ByteBuffer, java.util.concurrent.CompletableFuture, java.util.function.Supplier, org.eclipse.jetty.client.HttpUpgrader, org.eclipse.jetty.client.transport.HttpExchange, .HttpRequest, .HttpSender, org.eclipse.jetty.http.HostPortHttpField, .HttpFields, .HttpMethod, .HttpURI, .HttpVersion, .MetaData, org.eclipse.jetty.http3.HTTP3Stream, org.eclipse.jetty.http3.api.Stream, org.eclipse.jetty.http3.client.HTTP3SessionClient, org.eclipse.jetty.http3.frames.DataFrame, .HeadersFrame, org.eclipse.jetty.util.BufferUtil, .Callback, .URIUtil

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected HttpChannelOverHTTP3
private Stream
onNewStream(Stream stream, HttpRequest request)

private HttpFields
protected void
sendContent(HttpExchange exchange, ByteBuffer contentBuffer, boolean lastContent, Callback callback)

Implements abstract org.eclipse.jetty.client.transport.HttpSender.sendContent.

Implementations should send the given HTTP content over the wire.

protected void
sendHeaders(HttpExchange exchange, ByteBuffer contentBuffer, boolean lastContent, Callback callback)

Implements abstract org.eclipse.jetty.client.transport.HttpSender.sendHeaders.

Implementations should send the HTTP headers over the wire, possibly with some content, in a single write, and notify the given callback of the result of this operation.

private CompletableFuture<Stream>
sendTrailer(Stream stream, HttpFields trailers)

Inherited from org.eclipse.jetty.client.transport.HttpSender:
abortbeginToHeadersdisposeexpects100ContinuegetHttpExchangeheadersToCommitisFailedproceedqueuedToBeginrelativizeresetsendsomeToContentsomeToSuccesstoString

Constructor Detail

HttpSenderOverHTTP3back to summary
public HttpSenderOverHTTP3(HttpChannelOverHTTP3 channel)

Method Detail

getHttpChannelback to summary
protected HttpChannelOverHTTP3 getHttpChannel()

Overrides org.eclipse.jetty.client.transport.HttpSender.getHttpChannel.

Annotations
@Override
onNewStreamback to summary
private Stream onNewStream(Stream stream, HttpRequest request)
retrieveTrailersback to summary
private HttpFields retrieveTrailers(HttpRequest request)
sendContentback to summary
protected void sendContent(HttpExchange exchange, ByteBuffer contentBuffer, boolean lastContent, Callback callback)

Implements abstract org.eclipse.jetty.client.transport.HttpSender.sendContent.

Doc from org.eclipse.jetty.client.transport.HttpSender.sendContent.

Implementations should send the given HTTP content over the wire.

Annotations
@Override
sendHeadersback to summary
protected void sendHeaders(HttpExchange exchange, ByteBuffer contentBuffer, boolean lastContent, Callback callback)

Implements abstract org.eclipse.jetty.client.transport.HttpSender.sendHeaders.

Doc from org.eclipse.jetty.client.transport.HttpSender.sendHeaders.

Implementations should send the HTTP headers over the wire, possibly with some content, in a single write, and notify the given callback of the result of this operation.

If there is more content to send, then sendContent(HttpExchange, ByteBuffer, boolean, Callback) will be invoked.

Annotations
@Override
sendTrailerback to summary
private CompletableFuture<Stream> sendTrailer(Stream stream, HttpFields trailers)