Class MultipartBody

java.lang.Object
dev.ua.theroer.magicutils.http.MultipartBody

public final class MultipartBody extends Object
Simple multipart/form-data builder.
  • Method Details

    • builder

      public static MultipartBody.Builder builder()
      Creates a new multipart body builder.
      Returns:
      builder instance
    • contentType

      public String contentType()
      Returns the Content-Type header value for this multipart body.
      Returns:
      content type with boundary
    • publisher

      public HttpRequest.BodyPublisher publisher()
      Builds the body publisher for the multipart payload.
      Returns:
      body publisher