接口 BodyInserters.MultipartInserter

所有超级接口:
BodyInserter<cn.taketoday.util.MultiValueMap<String,Object>,ClientHttpRequest>, BodyInserters.FormInserter<Object>
所有已知实现类:
BodyInserters.DefaultMultipartInserter
封闭类:
BodyInserters

public static interface BodyInserters.MultipartInserter extends BodyInserters.FormInserter<Object>
Extension of BodyInserters.FormInserter that allows for adding asynchronous parts.
  • 方法详细资料

    • withPublisher

      <T, P extends org.reactivestreams.Publisher<T>> BodyInserters.MultipartInserter withPublisher(String name, P publisher, Class<T> elementClass)
      Add an asynchronous part with Publisher-based content.
      参数:
      name - the name of the part to add
      publisher - the part contents
      elementClass - the type of elements contained in the publisher
      返回:
      this inserter for adding more parts
    • withPublisher

      <T, P extends org.reactivestreams.Publisher<T>> BodyInserters.MultipartInserter withPublisher(String name, P publisher, cn.taketoday.core.ParameterizedTypeReference<T> typeReference)
      Variant of withPublisher(String, Publisher, Class) that accepts a ParameterizedTypeReference for the element type, which allows specifying generic type information.
      参数:
      name - the key to be added
      publisher - the publisher to be added as value
      typeReference - the type of elements contained in publisher
      返回:
      this inserter for adding more parts