Interface MultipartFormSpec


  • public interface MultipartFormSpec
    • Method Detail

      • field

        MultipartFormSpec field​(String name,
                                String value)
        Add a field to the multipart form.

        Note: Can be called multiple times to associate more than one value with a given field.

        Parameters:
        name - the field name
        value - the field value
        Returns:
        a specification of a multipart form
      • file

        MultipartFileSpec file()
        A specification of a file to upload (see RFC2388).

        Can be used to construct a multipart form with files.

        Returns:
        a specification of a multipart file