Module methanol
Class ForwardingBodyPublisher
java.lang.Object
com.github.mizosoft.methanol.internal.extensions.ForwardingBodyPublisher
- All Implemented Interfaces:
HttpRequest.BodyPublisher
,Flow.Publisher<ByteBuffer>
- Direct Known Subclasses:
MimeBodyPublisherAdapter
-
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionlong
void
subscribe
(Flow.Subscriber<? super ByteBuffer> subscriber) protected final HttpRequest.BodyPublisher
upstream()
-
Constructor Details
-
ForwardingBodyPublisher
-
-
Method Details
-
upstream
-
contentLength
public long contentLength()- Specified by:
contentLength
in interfaceHttpRequest.BodyPublisher
-
subscribe
- Specified by:
subscribe
in interfaceFlow.Publisher<ByteBuffer>
-