com.github.kristofa.test.http.HttpRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mock-http-server Show documentation
Show all versions of mock-http-server Show documentation
Mock and Proxy HTTP Server for testing purposes. Forked from https://github.com/jharlap/mock-http-server
package com.github.kristofa.test.http;
import java.util.Set;
/**
* Contains the HTTP request properties required to identify or compare a HTTP request.
*
* @author kristof
*/
public interface HttpRequest {
/**
* Gets method for request.
*
* @return Method for request.
*/
Method getMethod();
/**
* Get content for request.
*
* @return Content for request.
*/
byte[] getContent();
/**
* Gets path for request without query parameters.
*
* @return Path for request.
*/
String getPath();
/**
* Gets query parameters for request.
*
* @return Query parameters for request.
*/
Set getQueryParameters();
/**
* Get http message headers.
*
* @return Http message headers.
*/
Set getHttpMessageHeaders();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy