Package com.addthis.basis.util

Examples of com.addthis.basis.util.Multidict


    public HttpResponse(CloseableHttpResponse response) throws IOException {
        HttpEntity entity = response.getEntity();
        this.status = response.getStatusLine().getStatusCode();
        this.reason = response.getStatusLine().getReasonPhrase();
        this.body = (entity == null) ? null : EntityUtils.toByteArray(entity);
        this.headers = new Multidict();
        for (Header header : response.getAllHeaders()) {
            headers.put(header.getName(), header.getValue());
        }
    }
View Full Code Here

TOP

Related Classes of com.addthis.basis.util.Multidict

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.