Interface Part<A>

Type Parameters:
A - the type of data sent in the part
All Superinterfaces:
OutboundData<A>

public interface Part<A> extends OutboundData<A>

Represents a part in a multipart/form-data request body as defined by RFC 7578.

Since:
1.6
Author:
Jeremy Kuhn
See Also:
  • Method Details

    • name

      Part<A> name(String name)

      Specifies the part's name.

      Parameters:
      name - a name
      Returns:
      this part
    • filename

      Part<A> filename(String filename)

      Specifies the part's file name.

      Parameters:
      filename - a file name
      Returns:
      this part
    • headers

      Returns the part's headers.

      The returned headers are read-only, use headers(java.util.function.Consumer) for setting part's headers.

      Returns:
      read-only part's headers
    • headers

      Part<A> headers(Consumer<OutboundRequestHeaders> headersConfigurer)

      Specifies the part's headers.

      Parameters:
      headersConfigurer - a headers configurer
      Returns:
      this part