@Internal public class DefaultStreamedHttpRequest extends io.netty.handler.codec.http.DefaultHttpRequest implements StreamedHttpRequest
Constructor and Description |
---|
DefaultStreamedHttpRequest(io.netty.handler.codec.http.HttpVersion httpVersion,
io.netty.handler.codec.http.HttpMethod method,
java.lang.String uri,
boolean validateHeaders,
org.reactivestreams.Publisher<io.netty.handler.codec.http.HttpContent> stream) |
DefaultStreamedHttpRequest(io.netty.handler.codec.http.HttpVersion httpVersion,
io.netty.handler.codec.http.HttpMethod method,
java.lang.String uri,
org.reactivestreams.Publisher<io.netty.handler.codec.http.HttpContent> stream) |
Modifier and Type | Method and Description |
---|---|
void |
closeIfNoSubscriber()
Releases the stream if there is no subscriber.
|
void |
subscribe(org.reactivestreams.Subscriber<? super io.netty.handler.codec.http.HttpContent> subscriber) |
equals, getMethod, getUri, hashCode, method, setMethod, setProtocolVersion, setUri, toString, uri
getProtocolVersion, headers, protocolVersion
decoderResult, getDecoderResult, setDecoderResult
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getMethod, getUri, method, setMethod, setProtocolVersion, setUri, uri
public DefaultStreamedHttpRequest(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpMethod method, java.lang.String uri, org.reactivestreams.Publisher<io.netty.handler.codec.http.HttpContent> stream)
httpVersion
- The Http Versionmethod
- The Http Methoduri
- The URIstream
- The publisherpublic DefaultStreamedHttpRequest(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpMethod method, java.lang.String uri, boolean validateHeaders, org.reactivestreams.Publisher<io.netty.handler.codec.http.HttpContent> stream)
httpVersion
- The Http Versionmethod
- The Http Methoduri
- The URIvalidateHeaders
- Whether to validate the headersstream
- The publisherpublic void subscribe(org.reactivestreams.Subscriber<? super io.netty.handler.codec.http.HttpContent> subscriber)
subscribe
in interface org.reactivestreams.Publisher<io.netty.handler.codec.http.HttpContent>
public void closeIfNoSubscriber()
StreamedHttpRequest
closeIfNoSubscriber
in interface StreamedHttpRequest