Skip to content

v-dev/custom-httpclient-github

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CustomHttpClient

Wrapper around Apache httpclient using Builder pattern.

Usage

private static final ProxyInfo PROXY_INFO = new ProxyInfo(Protocol.HTTP, PROXY_HOST, PROXY_PORT);

CustomHttpRequest req = new CustomHttpRequestImpl.Builder(HOST, GET_PATH)
    .addHeader("x-custom-header", "some_value")
    .proxy(PROXY_INFO)
    .build();

CustomHttpResponse response = req.submit();
String rawRes = response.getRaw();

LOG.info("\nres: " + rawRes);

About

Sample use of BrowserMobProxy (BMP) and LittleProxy for integration testing (IT) of the CustomHttpClient tool.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages