top.jfunc.http.base.HttpInputMessage Maven / Gradle / Ivy
package top.jfunc.http.base;
import java.io.IOException;
import java.io.InputStream;
/**
* Represents an HTTP input message, consisting of {@linkplain #getHeaders() headers}
* and a readable {@linkplain #getBody() body}.
*
* Typically implemented by an HTTP request handle on the server side,
* or an HTTP response handle on the client side.
*
* @author Arjen Poutsma
* @since 3.0
*/
public interface HttpInputMessage extends HttpMessage {
/**
* Return the body of the message as an input stream.
* @return the input stream body (never {@code null})
* @throws IOException in case of I/O Errors
*/
InputStream getBody() throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy