Uses of Interface
org.eclipse.jetty.client.Request
Package
Description
Jetty Proxy : Async Proxy Support
Jetty WebSocket API :: Client
-
Uses of Request in org.eclipse.jetty.client
Modifier and TypeMethodDescriptionRequest.body
(Request.Content content) Request.cookie
(HttpCookie cookie) protected Request
HttpClient.copyRequest
(Request oldRequest, URI newURI) Shortcut method to specify a file as a content for this request, with the default content type of "application/octet-stream".Shortcut method to specify a file as a content for this request, with the given content type.Request.followRedirects
(boolean follow) CompletableResponseListener.getRequest()
FutureResponseListener.getRequest()
Deprecated.HttpRequestException.getRequest()
Response.getRequest()
Result.getRequest()
Get the request object.Request.headers
(Consumer<HttpFields.Mutable> consumer) Modifies the headers of this request.default Request
Request.idleTimeout
(long timeout, TimeUnit unit) Request.listener
(Request.Listener listener) Request.method
(HttpMethod method) HttpClient.newRequest
(String uri) Creates a new request with the specified absolute URI in string format.HttpClient.newRequest
(String host, int port) Creates a new request with the "http" scheme and the specified host and portHttpClient.newRequest
(URI uri) Creates a new request with the specified absolute URI.Request.onComplete
(Response.CompleteListener listener) Request.onPush
(BiFunction<Request, Request, Response.CompleteListener> pushHandler) Sets a handler for pushed resources.Request.onRequestBegin
(Request.BeginListener listener) Request.onRequestCommit
(Request.CommitListener listener) Request.onRequestContent
(Request.ContentListener listener) Request.onRequestFailure
(Request.FailureListener listener) Request.onRequestHeaders
(Request.HeadersListener listener) Request.onRequestQueued
(Request.QueuedListener listener) Request.onRequestSuccess
(Request.SuccessListener listener) Request.onResponseBegin
(Response.BeginListener listener) Request.onResponseContent
(Response.ContentListener listener) Request.onResponseContentAsync
(Response.AsyncContentListener listener) Request.onResponseContentSource
(Response.ContentSourceListener listener) Request.onResponseFailure
(Response.FailureListener listener) Request.onResponseHeader
(Response.HeaderListener listener) Request.onResponseHeaders
(Response.HeadersListener listener) Registers a listener for the headers event.Request.onResponseSuccess
(Response.SuccessListener listener) Adds a URI query parameter with the given name and value.Specifies the URI path - and possibly the query - of this request.default Request
Request.port
(int port) Creates a POST request to the specified URI.Creates a POST request to the specified URI.HttpRedirector.redirect
(Request request, Response response, Response.CompleteListener listener) Redirects the givenresponse
asynchronously.Tags this request with the given metadata tag.Request.trailersSupplier
(Supplier<HttpFields> trailers) Provides the trailers of this request.default Request
Request.version
(HttpVersion version) Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
Inspects the givenrequest
andresponse
to detect whether this protocol handler should handle them.boolean
boolean
boolean
boolean
protected boolean
UpgradeProtocolHandler.acceptHeaders
(Request request, Response response) void
Applies the authentication result to the given request.void
void
Authentication.authenticate
(Request request, ContentResponse response, Authentication.HeaderInfo headerInfo, Attributes context) Executes the authentication mechanism for the given request, returning aAuthentication.Result
that can be used to actually authenticate the request viaAuthentication.Result.apply(Request)
.BasicAuthentication.authenticate
(Request request, ContentResponse response, Authentication.HeaderInfo headerInfo, Attributes context) DigestAuthentication.authenticate
(Request request, ContentResponse response, Authentication.HeaderInfo headerInfo, Attributes context) SPNEGOAuthentication.authenticate
(Request request, ContentResponse response, Authentication.HeaderInfo headerInfo, Attributes context) protected Request
HttpClient.copyRequest
(Request oldRequest, URI newURI) HttpClient.createOrigin
(Request request, Origin.Protocol protocol) protected void
protected void
Finds the first protocol handler thataccepts
the given request and response.HttpClient.findProtocolHandler
(Request request, Response response) protected abstract URI
AuthenticationProtocolHandler.getAuthenticationURI
(Request request) protected URI
ProxyAuthenticationProtocolHandler.getAuthenticationURI
(Request request) protected URI
WWWAuthenticationProtocolHandler.getAuthenticationURI
(Request request) Creates a new Origin with the given request.protected static void
RequestListeners.notifyBegin
(Request.BeginListener listener, Request request) protected static void
RequestListeners.notifyCommit
(Request.CommitListener listener, Request request) protected static void
RequestListeners.notifyContent
(Request.ContentListener listener, Request request, ByteBuffer byteBuffer) protected static void
RequestListeners.notifyFailure
(Request.FailureListener listener, Request request, Throwable failure) protected static void
RequestListeners.notifyHeaders
(Request.HeadersListener listener, Request request) protected static void
RequestListeners.notifyQueued
(Request.QueuedListener listener, Request request) protected static void
RequestListeners.notifySuccess
(Request.SuccessListener listener, Request request) void
Callback method invoked when the request begins being processed in order to be sent.default void
void
Callback method invoked when the request headers (and perhaps small content) have been sent.default void
void
Request.ContentListener.onContent
(Request request, ByteBuffer content) Callback method invoked when a chunk of request content has been sent successfully.default void
Request.Listener.onContent
(Request request, ByteBuffer content) protected Runnable
ContinueProtocolHandler.onContinue
(Request request) protected void
EarlyHintsProtocolHandler.onEarlyHints
(Request request, HttpFields responseHeaders) void
Callback method invoked when the request has failed to be sentdefault void
void
Callback method invoked when the request headers (and perhaps small content) are ready to be sent.default void
protected void
ProcessingProtocolHandler.onProcessing
(Request request, HttpFields responseHeaders) default void
void
Callback method invoked when the request is queued, waiting to be sentdefault void
void
Callback method invoked when the request has been successfully sent.void
Prepares the request for the upgrade, for example by setting the HTTP method or by setting HTTP headers required for the upgrade.Redirects the givenresponse
, blocking until the redirect is complete.HttpRedirector.redirect
(Request request, Response response, Response.CompleteListener listener) Redirects the givenresponse
asynchronously.HttpClient.resolveDestination
(Request request) void
Connection.send
(Request request, Response.CompleteListener listener) Sends a request with an associated response listener.void
Destination.send
(Request request, Response.CompleteListener listener) Sends the given request to this destination.Writes the response content to the given filePath
.Modifier and TypeMethodDescriptionRequest.onPush
(BiFunction<Request, Request, Response.CompleteListener> pushHandler) Sets a handler for pushed resources.Request.onPush
(BiFunction<Request, Request, Response.CompleteListener> pushHandler) Sets a handler for pushed resources.ModifierConstructorDescriptionCompletableResponseListener
(Request request) CompletableResponseListener
(Request request, int maxLength) FutureResponseListener
(Request request) Deprecated.FutureResponseListener
(Request request, int maxLength) Deprecated.HttpRequestException
(String message, Request request) -
Uses of Request in org.eclipse.jetty.client.internal
Modifier and TypeMethodDescriptionvoid
NotifyingRequestListeners.notifyBegin
(Request request) void
NotifyingRequestListeners.notifyCommit
(Request request) void
NotifyingRequestListeners.notifyContent
(Request request, ByteBuffer byteBuffer) void
NotifyingRequestListeners.notifyFailure
(Request request, Throwable failure) void
NotifyingRequestListeners.notifyHeaders
(Request request) void
NotifyingRequestListeners.notifyQueued
(Request request) void
NotifyingRequestListeners.notifySuccess
(Request request) -
Uses of Request in org.eclipse.jetty.client.transport
Modifier and TypeMethodDescriptionHttpRequest.body
(Request.Content content) HttpRequest.cookie
(HttpCookie cookie) HttpRequest.followRedirects
(boolean follow) HttpResponse.getRequest()
HttpRequest.headers
(Consumer<HttpFields.Mutable> consumer) HttpRequest.idleTimeout
(long timeout, TimeUnit unit) HttpRequest.listener
(Request.Listener listener) HttpRequest.method
(HttpMethod method) HttpRequest.onComplete
(Response.CompleteListener listener) HttpRequest.onPush
(BiFunction<Request, Request, Response.CompleteListener> pushHandler) HttpRequest.onRequestBegin
(Request.BeginListener listener) HttpRequest.onRequestCommit
(Request.CommitListener listener) HttpRequest.onRequestContent
(Request.ContentListener listener) HttpRequest.onRequestFailure
(Request.FailureListener listener) HttpRequest.onRequestHeaders
(Request.HeadersListener listener) HttpRequest.onRequestQueued
(Request.QueuedListener listener) HttpRequest.onRequestSuccess
(Request.SuccessListener listener) HttpRequest.onResponseBegin
(Response.BeginListener listener) HttpRequest.onResponseContent
(Response.ContentListener listener) HttpRequest.onResponseContentAsync
(Response.AsyncContentListener listener) HttpRequest.onResponseContentSource
(Response.ContentSourceListener listener) HttpRequest.onResponseFailure
(Response.FailureListener listener) HttpRequest.onResponseHeader
(Response.HeaderListener listener) HttpRequest.onResponseHeaders
(Response.HeadersListener listener) HttpRequest.onResponseSuccess
(Response.SuccessListener listener) HttpRequest.port
(int port) HttpRequest.trailersSupplier
(Supplier<HttpFields> trailers) HttpRequest.version
(HttpVersion version) Modifier and TypeMethodDescriptionprotected boolean
HttpSender.expects100Continue
(Request request) void
HttpConnection.send
(Request request, Response.CompleteListener listener) void
HttpDestination.send
(Request request, Response.CompleteListener listener) Modifier and TypeMethodDescriptionHttpRequest.onPush
(BiFunction<Request, Request, Response.CompleteListener> pushHandler) HttpRequest.onPush
(BiFunction<Request, Request, Response.CompleteListener> pushHandler) -
Uses of Request in org.eclipse.jetty.client.transport.internal
Modifier and TypeMethodDescriptionvoid
void
HttpConnectionOverHTTP.send
(Request request, Response.CompleteListener listener) -
Uses of Request in org.eclipse.jetty.ee10.fcgi.proxy
Modifier and TypeMethodDescriptionprotected void
FastCGIProxyServlet.customizeFastCGIHeaders
(Request proxyRequest, HttpFields.Mutable fastCGIHeaders) protected void
FastCGIProxyServlet.sendProxyRequest
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse proxyResponse, Request proxyRequest) -
Uses of Request in org.eclipse.jetty.ee10.proxy
Modifier and TypeMethodDescriptionprotected Request
AbstractProxyServlet.newProxyRequest
(jakarta.servlet.http.HttpServletRequest request, String rewrittenTarget) Modifier and TypeMethodDescriptionprotected void
AbstractProxyServlet.addProxyHeaders
(jakarta.servlet.http.HttpServletRequest clientRequest, Request proxyRequest) protected void
AbstractProxyServlet.addViaHeader
(jakarta.servlet.http.HttpServletRequest clientRequest, Request proxyRequest) Adds the HTTPVia
header to the proxied request, taking into account data present in the client request.protected void
AbstractProxyServlet.addViaHeader
(Request proxyRequest) Adds the HTTPVia
header to the proxied request.protected void
AbstractProxyServlet.addXForwardedHeaders
(jakarta.servlet.http.HttpServletRequest clientRequest, Request proxyRequest) protected void
AbstractProxyServlet.copyRequestHeaders
(jakarta.servlet.http.HttpServletRequest clientRequest, Request proxyRequest) protected AsyncMiddleManServlet.ContentTransformer
AsyncMiddleManServlet.newClientRequestContentTransformer
(jakarta.servlet.http.HttpServletRequest clientRequest, Request proxyRequest) protected jakarta.servlet.ReadListener
AsyncMiddleManServlet.newProxyReadListener
(jakarta.servlet.http.HttpServletRequest clientRequest, jakarta.servlet.http.HttpServletResponse proxyResponse, Request proxyRequest, AsyncRequestContent content) protected AsyncRequestContent
AsyncMiddleManServlet.newProxyRequestContent
(jakarta.servlet.http.HttpServletRequest clientRequest, jakarta.servlet.http.HttpServletResponse proxyResponse, Request proxyRequest) protected jakarta.servlet.ReadListener
AsyncProxyServlet.newReadListener
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Request proxyRequest, AsyncRequestContent content) protected void
AbstractProxyServlet.onClientRequestFailure
(jakarta.servlet.http.HttpServletRequest clientRequest, Request proxyRequest, jakarta.servlet.http.HttpServletResponse proxyResponse, Throwable failure) protected Runnable
AbstractProxyServlet.onContinue
(jakarta.servlet.http.HttpServletRequest clientRequest, Request proxyRequest) protected Runnable
AsyncMiddleManServlet.onContinue
(jakarta.servlet.http.HttpServletRequest clientRequest, Request proxyRequest) protected Runnable
ProxyServlet.onContinue
(jakarta.servlet.http.HttpServletRequest clientRequest, Request proxyRequest) protected void
AsyncProxyServlet.StreamReader.onRequestContent
(jakarta.servlet.http.HttpServletRequest request, Request proxyRequest, AsyncRequestContent content, byte[] buffer, int offset, int length, Callback callback) protected Request.Content
AsyncProxyServlet.proxyRequestContent
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Request proxyRequest) protected Request.Content
ProxyServlet.proxyRequestContent
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Request proxyRequest) Wraps the client-to-proxy request content in aRequest.Content
for the proxy-to-server request.protected void
AbstractProxyServlet.sendProxyRequest
(jakarta.servlet.http.HttpServletRequest clientRequest, jakarta.servlet.http.HttpServletResponse proxyResponse, Request proxyRequest) ModifierConstructorDescriptionprotected
ProxyInputStreamRequestContent
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Request proxyRequest, InputStream input) protected
ProxyReader
(jakarta.servlet.http.HttpServletRequest clientRequest, jakarta.servlet.http.HttpServletResponse proxyResponse, Request proxyRequest, AsyncRequestContent content) protected
StreamReader
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Request proxyRequest, AsyncRequestContent content) -
Uses of Request in org.eclipse.jetty.ee10.websocket.jakarta.client.internal
Modifier and TypeMethodDescriptionvoid
JsrUpgradeListener.onHandshakeRequest
(Request request) void
JsrUpgradeListener.onHandshakeResponse
(Request request, Response response) -
Uses of Request in org.eclipse.jetty.fcgi.client.transport
-
Uses of Request in org.eclipse.jetty.fcgi.client.transport.internal
Modifier and TypeMethodDescriptionvoid
HttpConnectionOverFCGI.send
(Request request, Response.CompleteListener listener) -
Uses of Request in org.eclipse.jetty.fcgi.proxy
Modifier and TypeMethodDescriptionprotected void
FastCGIProxyHandler.customizeFastCGIHeaders
(Request proxyToServerRequest, HttpFields.Mutable fastCGIHeaders) protected void
FastCGIProxyHandler.sendProxyToServerRequest
(Request clientToProxyRequest, Request proxyToServerRequest, Response proxyToClientResponse, Callback proxyToClientCallback) -
Uses of Request in org.eclipse.jetty.http2.client.transport
-
Uses of Request in org.eclipse.jetty.http3.client.transport
-
Uses of Request in org.eclipse.jetty.proxy
Modifier and TypeMethodDescriptionprotected Request
ProxyHandler.newProxyToServerRequest
(Request clientToProxyRequest, HttpURI newHttpURI) Modifier and TypeMethodDescriptionprotected void
ProxyHandler.addForwardedHeader
(Request clientToProxyRequest, Request proxyToServerRequest) protected void
ProxyHandler.addProxyHeaders
(Request clientToProxyRequest, Request proxyToServerRequest) protected void
ProxyHandler.addViaHeader
(Request clientToProxyRequest, Request proxyToServerRequest) protected void
ProxyHandler.copyRequestHeaders
(Request clientToProxyRequest, Request proxyToServerRequest) protected Request.Content
ProxyHandler.newProxyToServerRequestContent
(Request clientToProxyRequest, Response proxyToClientResponse, Request proxyToServerRequest) protected Response.CompleteListener
ProxyHandler.newServerToProxyResponseListener
(Request clientToProxyRequest, Request proxyToServerRequest, Response proxyToClientResponse, Callback proxyToClientCallback) protected void
ProxyHandler.onProxyToClientResponseComplete
(Request clientToProxyRequest, Request proxyToServerRequest, Response serverToProxyResponse, Response proxyToClientResponse, Callback proxyToClientCallback) protected void
ProxyHandler.onProxyToClientResponseFailure
(Request clientToProxyRequest, Request proxyToServerRequest, Response serverToProxyResponse, Response proxyToClientResponse, Callback proxyToClientCallback, Throwable failure) protected Runnable
ProxyHandler.onServerToProxyResponse100Continue
(Request clientToProxyRequest, Request proxyToServerRequest) protected void
ProxyHandler.onServerToProxyResponse102Processing
(Request clientToProxyRequest, Request proxyToServerRequest, HttpFields serverToProxyResponseHeaders, Response proxyToClientResponse) protected void
ProxyHandler.onServerToProxyResponse103EarlyHints
(Request clientToProxyRequest, Request proxyToServerRequest, HttpFields serverToProxyResponseHeaders, Response proxyToClientResponse) protected void
ProxyHandler.onServerToProxyResponseFailure
(Request clientToProxyRequest, Request proxyToServerRequest, Response serverToProxyResponse, Response proxyToClientResponse, Callback proxyToClientCallback, Throwable failure) protected void
ProxyHandler.sendProxyToServerRequest
(Request clientToProxyRequest, Request proxyToServerRequest, Response proxyToClientResponse, Callback proxyToClientCallback) ModifierConstructorDescriptionProxyResponseListener
(Request clientToProxyRequest, Request proxyToServerRequest, Response proxyToClientResponse, Callback proxyToClientCallback) -
Uses of Request in org.eclipse.jetty.websocket.client
Modifier and TypeMethodDescriptiondefault void
JettyUpgradeListener.onHandshakeRequest
(Request request) Event that triggers before the Handshake request is sent.default void
JettyUpgradeListener.onHandshakeResponse
(Request request, Response response) Event that triggers after the Handshake response has been received. -
Uses of Request in org.eclipse.jetty.websocket.core.client
Modifier and TypeMethodDescriptiondefault void
UpgradeListener.onHandshakeRequest
(Request request) Event that triggers before the Handshake request is sent.default void
UpgradeListener.onHandshakeResponse
(Request request, Response response) Event that triggers after the Handshake response has been received. -
Uses of Request in org.eclipse.jetty.websocket.core.client.internal