public final class StreamingHttpRequests
extends java.lang.Object
StreamingHttpRequest
s.Modifier and Type | Method and Description |
---|---|
static StreamingHttpRequest |
newRequest(HttpRequestMethod method,
java.lang.String requestTarget,
HttpProtocolVersion version,
HttpHeaders headers,
BufferAllocator allocator,
HttpHeadersFactory headersFactory)
Creates a new
StreamingHttpRequest . |
static StreamingHttpRequest |
newTransportRequest(HttpRequestMethod method,
java.lang.String requestTarget,
HttpProtocolVersion version,
HttpHeaders headers,
BufferAllocator allocator,
Publisher<java.lang.Object> payload,
HttpHeadersFactory headersFactory)
Creates a new
StreamingHttpRequest which is read from the transport. |
public static StreamingHttpRequest newRequest(HttpRequestMethod method, java.lang.String requestTarget, HttpProtocolVersion version, HttpHeaders headers, BufferAllocator allocator, HttpHeadersFactory headersFactory)
StreamingHttpRequest
.method
- the HttpRequestMethod
of the request.requestTarget
- the request-target of the
request.version
- the HttpProtocolVersion
of the request.headers
- the HttpHeaders
of the request.allocator
- the allocator used for serialization purposes if necessary.headersFactory
- HttpHeadersFactory
to use.StreamingHttpRequest
.public static StreamingHttpRequest newTransportRequest(HttpRequestMethod method, java.lang.String requestTarget, HttpProtocolVersion version, HttpHeaders headers, BufferAllocator allocator, Publisher<java.lang.Object> payload, HttpHeadersFactory headersFactory)
StreamingHttpRequest
which is read from the transport. If the request contains
trailers then the passed payload
Publisher
should also emit HttpHeaders
before completion.method
- the HttpRequestMethod
of the request.requestTarget
- the request-target of the
request.version
- the HttpProtocolVersion
of the request.headers
- the HttpHeaders
of the request.allocator
- the allocator used for serialization purposes if necessary.payload
- a Publisher
for payload that optionally emits HttpHeaders
if the request contains
trailers.headersFactory
- HttpHeadersFactory
to use.StreamingHttpRequest
.