Top Methods
org.apache.hc.core5.reactive

public Interface ReactiveRequestProcessor

Imports
org.apache.hc.core5.function.Callback, org.apache.hc.core5.http.EntityDetails, .HttpException, .HttpRequest, org.apache.hc.core5.http.nio.ResponseChannel, org.apache.hc.core5.http.protocol.HttpContext, org.reactivestreams.Publisher, java.io.IOException, java.nio.ByteBuffer

Since
5.0

Method Summary

Modifier and TypeMethod and Description
public void
processRequest(HttpRequest
the actual request.
request
,
EntityDetails
the request entity details or null if the request does not enclose an entity.
entityDetails
,
ResponseChannel
the response channel.
responseChannel
,
HttpContext
the actual execution context.
context
,
Publisher<ByteBuffer>
a reactive stream representing the request body.
requestBody
,
Callback<Publisher<ByteBuffer>>
a callback to invoke with the response body, if any.
responseBodyCallback
)

Processes the actual HTTP request.

Method Detail

processRequestback to summary
public void processRequest(HttpRequest request, EntityDetails entityDetails, ResponseChannel responseChannel, HttpContext context, Publisher<ByteBuffer> requestBody, Callback<Publisher<ByteBuffer>> responseBodyCallback) throws HttpException, IOException

Processes the actual HTTP request. The handler can choose to send response messages immediately inside the call or asynchronously at some later point.

Parameters
request:HttpRequest

the actual request.

entityDetails:EntityDetails

the request entity details or null if the request does not enclose an entity.

responseChannel:ResponseChannel

the response channel.

context:HttpContext

the actual execution context.

requestBody:Publisher<ByteBuffer>

a reactive stream representing the request body.

responseBodyCallback:Callback<Publisher<ByteBuffer>>

a callback to invoke with the response body, if any.