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

    Constructors
    Constructor
    Description
    ApacheBackedHttpClient(org.apache.hc.client5.http.impl.classic.CloseableHttpClient apacheHttpClient, boolean preserveUserAgentProxyHeader)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.github.tomakehurst.wiremock.http.Response
    execute(com.github.tomakehurst.wiremock.http.Request request)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      execute in interface com.github.tomakehurst.wiremock.http.client.HttpClient
      Throws:
      IOException