All Downloads are FREE. Search and download functionalities are using the official Maven repository.

top.jfunc.http.base.HttpMessage Maven / Gradle / Ivy

package top.jfunc.http.base;

import top.jfunc.common.utils.MultiValueMap;

import java.io.IOException;

/**
 * Represents the base interface for HTTP request and response messages.
 * Consists of {@link MultiValueMap}, retrievable via {@link #getHeaders()}.
 *
 * @author Arjen Poutsma
 * @since 3.0
 */
public interface HttpMessage {

	/**
	 * Return the headers of this message.
	 * @return a corresponding HttpHeaders object (maybe {@code null})
	 * @throws IOException in case of I/O Errors
	 */
	MultiValueMap getHeaders() throws IOException;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy