Skip to content

Conversation

breun
Copy link
Contributor

@breun breun commented Oct 19, 2018

Currently this isn't supported:

Map<String, List<String>> headers = new HashMap<>();
headers.put("X-Forwarded-For", Colllections.singletonList("10.0.0.1"));

RequestBuilder requestBuilder = new RequestBuilder();
requestBuilder.setHeaders(headers);

My IDE reports: Cannot resolve method 'setHeaders(java.util.Map<java.lang.String,java.util.List<java.lang.String>>)'

This pull requests adds support for the above construct.

@slandelle slandelle added this to the 2.5.5 milestone Oct 19, 2018
@slandelle slandelle merged commit e1f6371 into AsyncHttpClient:master Oct 19, 2018
@slandelle
Copy link
Contributor

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants