artiya4u / google-http-java-client

Automatically exported from code.google.com/p/google-http-java-client
0 stars 0 forks source link

Add a HttpHeaders.fromHttpHeaders(..) method #113

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It would be helpful if one can create a custom headers class (e.g. 
GoogleHeaders) and use an existing HttpHeaders instance to fill in all fields.

Example:

GoogleHeaders gh = new GoogleHeaders();
gh.fromHttpHeaders(response.getHeaders());
long myValue = gh.getMyCustomHeader();

Original issue reported on code.google.com by mlin...@google.com on 15 May 2012 at 3:52

GoogleCodeExporter commented 9 years ago
Submitted in 1993e3e4a03e

Original comment by mlin...@google.com on 25 May 2012 at 7:47