Module methanol

Class MultipartBodyPublisher

  • All Implemented Interfaces:
    MimeBodyPublisher, java.net.http.HttpRequest.BodyPublisher, java.util.concurrent.Flow.Publisher<java.nio.ByteBuffer>

    public final class MultipartBodyPublisher
    extends java.lang.Object
    implements MimeBodyPublisher
    A BodyPublisher for multipart bodies.
    • Method Detail

      • boundary

        public java.lang.String boundary()
        Returns the boundary of this multipart body.
      • contentLength

        public long contentLength()
        Specified by:
        contentLength in interface java.net.http.HttpRequest.BodyPublisher
      • subscribe

        public void subscribe​(java.util.concurrent.Flow.Subscriber<? super java.nio.ByteBuffer> subscriber)
        Specified by:
        subscribe in interface java.util.concurrent.Flow.Publisher<java.nio.ByteBuffer>