Interface HttpBody
- All Known Subinterfaces:
MultiObjectBody
- All Known Implementing Classes:
FormRouteCompleter,ImmediateMultiObjectBody,ImmediateSingleObjectBody,StreamingMultiObjectBody
@Internal
public interface HttpBody
Base type for a representation of an HTTP request body.
Exactly one HttpBody holds control over a request body at a time. When a transformation of
the body is performed, e.g. multipart processing, the new HttpBody takes control and the old one
becomes invalid. The new body will be available via next().
- Since:
- 4.0.0
-
Method Summary
-
Method Details
-
release
void release()Release this body and any downstream representations. -
next
Get the next representation this body was transformed into, if any.- Returns:
- The next representation, or
nullif this body has not been transformed
-