Uses of Class
org.miaixz.bus.http.Request
Packages that use Request
Package
Description
An HTTP client for Java applications.
Provides internal implementation details for the HTTP client, including connection management, streams, and routing.
Provides classes for caching HTTP responses.
Provides internal metrics and standards for the HTTP client.
Provides the internal implementation of the HTTP/1.1 and HTTP/2 protocols.
Provides the core implementation classes for the Httpv client, including task management, execution, data conversion,
and WebSocket support.
Provides a fluent, builder-based API (Httpz) for making HTTP requests, simplifying interactions with the core
Httpd client.Provides classes for managing security-related aspects of HTTP, including TLS/SSL configuration, authentication, and
certificate pinning.
Provides the implementation of the WebSocket protocol (RFC 6455) for creating and managing WebSocket connections.
-
Uses of Request in org.miaixz.bus.http
Fields in org.miaixz.bus.http declared as RequestModifier and TypeFieldDescriptionfinal RequestRealCall.originalRequestThe original, unmodified request that initiated this call.Methods in org.miaixz.bus.http that return RequestModifier and TypeMethodDescriptionRequest.Builder.build()Builds a newRequestinstance.NewCall.request()Returns the original request that initiated this call.RealCall.request()Returns the original request that initiated this call.Response.request()Returns the original request that initiated this response.Methods in org.miaixz.bus.http with parameters of type RequestModifier and TypeMethodDescriptionPrepares therequestto be executed at some point in the future.Creates a new call for the given request.Httpd.newWebSocket(Request request, WebSocketListener listener) Usesrequestto connect a new web socket.Creates a new call for the given request using the underlyingHttpdclient.Sets the request that initiated this response.static booleanHeaders.varyMatches(Response cachedResponse, Headers cachedRequest, Request newRequest) Checks if the Vary header matches.Httpv.webSocket(Request request, WebSocketListener listener) Creates a new WebSocket connection using the underlyingHttpdclient. -
Uses of Request in org.miaixz.bus.http.accord
Methods in org.miaixz.bus.http.accord with parameters of type RequestModifier and TypeMethodDescriptionorg.miaixz.bus.core.io.sink.SinkExchange.createRequestBody(Request request, boolean duplex) Creates a sink to write the request body.voidTransmitter.prepareToConnect(Request request) Prepare to create a stream to carryrequest.voidExchange.writeRequestHeaders(Request request) Writes the request headers to the network. -
Uses of Request in org.miaixz.bus.http.cache
Fields in org.miaixz.bus.http.cache declared as RequestModifier and TypeFieldDescriptionfinal RequestCacheStrategy.networkRequestThe request to send on the network, or null if the network is not used.Methods in org.miaixz.bus.http.cache with parameters of type RequestModifier and TypeMethodDescriptionReturns the cached response for the givenrequest, or null if no cached response exists or is not suitable.static booleanCacheStrategy.isCacheable(Response response, Request request) Returns true ifresponsecan be stored to later serve another request.voidRemoves any cached entries for the givenrequest.Constructors in org.miaixz.bus.http.cache with parameters of type Request -
Uses of Request in org.miaixz.bus.http.metric
Methods in org.miaixz.bus.http.metric that return RequestModifier and TypeMethodDescriptionNewChain.request()Returns the request currently being processed.Methods in org.miaixz.bus.http.metric with parameters of type RequestModifier and TypeMethodDescriptionabstract NewCallInternal.newWebSocketCall(Httpd client, Request request) Creates a new WebSocket call.Proceeds with the request to the next interceptor in the chain.voidEventListener.requestHeadersEnd(NewCall call, Request request) Invoked immediately after sending request headers. -
Uses of Request in org.miaixz.bus.http.metric.http
Methods in org.miaixz.bus.http.metric.http that return RequestMethods in org.miaixz.bus.http.metric.http with parameters of type RequestModifier and TypeMethodDescriptionorg.miaixz.bus.core.io.sink.SinkHttp1Codec.createRequestBody(Request request, long contentLength) org.miaixz.bus.core.io.sink.SinkHttp2Codec.createRequestBody(Request request, long contentLength) Creates a sink to write the request body.org.miaixz.bus.core.io.sink.SinkHttpCodec.createRequestBody(Request request, long contentLength) Returns an output stream that can stream the request body.static StringRequestLine.get(Request request, Proxy.Type proxyType) Returns the request line for a given request.static List<Http2Header> Http2Codec.http2HeadersList(Request request) Converts an HTTP request to a list of HTTP/2 headers.RealInterceptorChain.proceed(Request request, Transmitter transmitter, Exchange exchange) voidHttp1Codec.writeRequestHeaders(Request request) Prepares the HTTP headers and sends them to the server.voidHttp2Codec.writeRequestHeaders(Request request) Writes the request headers to the stream.voidHttpCodec.writeRequestHeaders(Request request) Writes the request headers to the network.Constructors in org.miaixz.bus.http.metric.http with parameters of type RequestModifierConstructorDescriptionRealInterceptorChain(List<Interceptor> interceptors, Transmitter transmitter, Exchange exchange, int index, Request request, NewCall call, int connectTimeout, int readTimeout, int writeTimeout) -
Uses of Request in org.miaixz.bus.http.plugin.httpv
Methods in org.miaixz.bus.http.plugin.httpv that return RequestModifier and TypeMethodDescriptionprotected RequestCoverHttp.prepareRequest(String method) Prepares the Httpd Request object. -
Uses of Request in org.miaixz.bus.http.plugin.httpz
Methods in org.miaixz.bus.http.plugin.httpz that return RequestModifier and TypeMethodDescriptionprotected RequestDeleteRequest.buildRequest(RequestBody requestBody) Builds the final HttpdRequestobject.protected RequestGetRequest.buildRequest(RequestBody requestBody) Builds the final HttpdRequestobject.protected RequestHeadRequest.buildRequest(RequestBody requestBody) Builds the final HttpdRequestobject.protected abstract RequestHttpRequest.buildRequest(RequestBody requestBody) Abstract method to be implemented by subclasses to construct the finalRequestobject with the correct HTTP method.protected RequestPostRequest.buildRequest(RequestBody requestBody) protected RequestPutRequest.buildRequest(RequestBody requestBody) HttpRequest.createRequest(Callback callback) Creates the finalRequestobject.RequestCall.getRequest() -
Uses of Request in org.miaixz.bus.http.secure
Methods in org.miaixz.bus.http.secure that return RequestModifier and TypeMethodDescriptionAuthenticator.authenticate(Route route, Response response) Returns a request that includes a credential to satisfy an authentication challenge inresponse.NetAuthenticator.authenticate(Route route, Response response) -
Uses of Request in org.miaixz.bus.http.socket
Methods in org.miaixz.bus.http.socket that return RequestMethods in org.miaixz.bus.http.socket with parameters of type RequestModifier and TypeMethodDescriptionWebSocket.Factory.newWebSocket(Request request, WebSocketListener listener) Creates a new web socket and immediately returns it.Constructors in org.miaixz.bus.http.socket with parameters of type RequestModifierConstructorDescriptionRealWebSocket(Request request, WebSocketListener listener, Random random, long pingIntervalMillis) Constructs a new RealWebSocket.