Class ApacheBackedHttpClient
java.lang.Object
com.github.tomakehurst.wiremock.http.client.apache5.ApacheBackedHttpClient
- All Implemented Interfaces:
com.github.tomakehurst.wiremock.http.client.HttpClient
public class ApacheBackedHttpClient
extends Object
implements com.github.tomakehurst.wiremock.http.client.HttpClient
-
Field Summary
Fields inherited from interface com.github.tomakehurst.wiremock.http.client.HttpClient
ACCEPT_ENCODING_HEADER, CONNECTION, CONTENT_ENCODING, CONTENT_LENGTH, FORBIDDEN_REQUEST_HEADERS, FORBIDDEN_RESPONSE_HEADERS, HOST_HEADER, TRANSFER_ENCODING, UPGRADE, USER_AGENT -
Constructor Summary
ConstructorsConstructorDescriptionApacheBackedHttpClient(org.apache.hc.client5.http.impl.classic.CloseableHttpClient apacheHttpClient, boolean preserveUserAgentProxyHeader) -
Method Summary
Modifier and TypeMethodDescriptioncom.github.tomakehurst.wiremock.http.Responseexecute(com.github.tomakehurst.wiremock.http.Request request)
-
Constructor Details
-
ApacheBackedHttpClient
public ApacheBackedHttpClient(org.apache.hc.client5.http.impl.classic.CloseableHttpClient apacheHttpClient, boolean preserveUserAgentProxyHeader)
-
-
Method Details
-
execute
public com.github.tomakehurst.wiremock.http.Response execute(com.github.tomakehurst.wiremock.http.Request request) throws IOException - Specified by:
executein interfacecom.github.tomakehurst.wiremock.http.client.HttpClient- Throws:
IOException
-