Package de.linusdev.lutils.http_WIP.body
Interface BodySupplier
public interface BodySupplier
-
Method Summary
Modifier and TypeMethodDescriptionintlength()the length of the body or -1 if the length is unknown.@NotNull InputStreamstream()InputStreamcontaining the body.
-
Method Details
-
length
int length()the length of the body or -1 if the length is unknown.- Returns:
- length of this body or -1
-
stream
InputStreamcontaining the body. The returned stream must be closed by the method caller.- Returns:
InputStream
-