接口 Part
- 所有已知子接口:
FilePart,FormFieldPart
- 所有已知实现类:
DefaultParts.AbstractPart,DefaultParts.DefaultFilePart,DefaultParts.DefaultFormFieldPart,DefaultParts.DefaultPart
public interface Part
Representation for a part in a "multipart/form-data" request.
The origin of a multipart request may be a browser form in which case each
part is either a FormFieldPart or a FilePart.
Multipart requests may also be used outside of a browser for data of any content type (e.g. JSON, PDF, etc).
- 从以下版本开始:
- 4.0
- 作者:
- Sebastien Deleuze, Rossen Stoyanchev
- 另请参阅:
-
方法概要
修饰符和类型方法说明reactor.core.publisher.Flux<cn.taketoday.core.io.buffer.DataBuffer>content()Return the content for this part.default reactor.core.publisher.Mono<Void>delete()Return a mono that, when subscribed to, deletes the underlying storage for this part.headers()Return the headers associated with the part.name()Return the name of the part in the multipart form.
-
方法详细资料
-
name
String name()Return the name of the part in the multipart form.- 返回:
- the name of the part, never
nullor empty
-
headers
HttpHeaders headers()Return the headers associated with the part. -
content
reactor.core.publisher.Flux<cn.taketoday.core.io.buffer.DataBuffer> content()Return the content for this part.Note that for a
FormFieldPartthe content may be accessed more easily viaFormFieldPart.value(). -
delete
Return a mono that, when subscribed to, deletes the underlying storage for this part.
-