com.github.kristofa.test.http.FullHttpRequest 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;
/**
* A Full HTTP Request extends a {@link HttpRequest} with domain (host), port. We are interested in those properties when we
* need to forward requests.
*
* @see ForwardHttpRequestBuilder
* @see LoggingHttpProxy
* @author kristof
*/
public interface FullHttpRequest extends HttpRequest {
/**
* Gets domain / host for request.
*
* @return Gets domain for request.
*/
String getDomain();
/**
* Gets port for request.
*
* @return Gets port for request.
*/
Integer getPort();
/**
* Gets the url for the http request, including query parameters if defined.
*
* @return Url for http request. The URL should be encoded so it can be submitted to a http server.
*/
String getUrl();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy