Interface BodyInserters.FormInserter<T>

Type Parameters:
T - the value type
All Superinterfaces:
BodyInserter<MultiValueMap<String,T>,ClientHttpRequest>
All Known Subinterfaces:
BodyInserters.MultipartInserter
Enclosing class:
BodyInserters

public static interface BodyInserters.FormInserter<T> extends BodyInserter<MultiValueMap<String,T>,ClientHttpRequest>
Extension of BodyInserter that allows for adding form data or multipart form data.
  • Method Details

    • with

      BodyInserters.FormInserter<T> with(String key, T value)
      Adds the specified key-value pair to the form.
      Parameters:
      key - the key to be added
      value - the value to be added
      Returns:
      this inserter for adding more parts
    • with

      Adds the specified values to the form.
      Parameters:
      values - the values to be added
      Returns:
      this inserter for adding more parts