Interface BodyInserters.FormInserter<T>

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

public static interface BodyInserters.FormInserter<T> extends BodyInserter<org.springframework.util.MultiValueMap<String,T>,org.springframework.http.client.reactive.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

      BodyInserters.FormInserter<T> with(org.springframework.util.MultiValueMap<String,T> values)
      Adds the specified values to the form.
      Parameters:
      values - the values to be added
      Returns:
      this inserter for adding more parts