Package com.intuit.karate.http
Class ApacheHttpClient
- java.lang.Object
-
- com.intuit.karate.http.ApacheHttpClient
-
- All Implemented Interfaces:
HttpClient
,org.apache.http.HttpRequestInterceptor
public class ApacheHttpClient extends Object implements HttpClient, org.apache.http.HttpRequestInterceptor
- Author:
- pthomas3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ApacheHttpClient.LenientCookieSpec
-
Constructor Summary
Constructors Constructor Description ApacheHttpClient(ScenarioEngine engine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Config
getConfig()
Response
invoke(HttpRequest request)
void
process(org.apache.http.HttpRequest hr, org.apache.http.protocol.HttpContext hc)
void
setConfig(Config config)
-
-
-
Constructor Detail
-
ApacheHttpClient
public ApacheHttpClient(ScenarioEngine engine)
-
-
Method Detail
-
setConfig
public void setConfig(Config config)
- Specified by:
setConfig
in interfaceHttpClient
-
getConfig
public Config getConfig()
- Specified by:
getConfig
in interfaceHttpClient
-
invoke
public Response invoke(HttpRequest request)
- Specified by:
invoke
in interfaceHttpClient
-
process
public void process(org.apache.http.HttpRequest hr, org.apache.http.protocol.HttpContext hc) throws org.apache.http.HttpException, IOException
- Specified by:
process
in interfaceorg.apache.http.HttpRequestInterceptor
- Throws:
org.apache.http.HttpException
IOException
-
-