com.github.kristofa.test.http.client.HttpClient 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.client;
import java.io.InputStream;
import com.github.kristofa.test.http.FullHttpRequest;
/**
* A higher level HTTP Client interface that abstracts the low level library that is being used.
*
* @author kristof
*/
public interface HttpClient {
/**
* Executes a HTTP request and returns response.
*
* @param request HTTP request.
* @return Response.
* @throws HttpRequestException In case request failed.
*/
HttpClientResponse execute(final FullHttpRequest request) throws HttpRequestException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy