All Downloads are FREE. Search and download functionalities are using the official Maven repository.

hr.com.vgv.verano.http.wire.apache.ApacheHeaders Maven / Gradle / Ivy

There is a newer version: 0.41
Show newest version
package hr.com.vgv.verano.http.wire.apache;

import org.apache.http.Header;
import org.cactoos.iterable.Mapped;

import hr.com.vgv.verano.http.DictInput;
import hr.com.vgv.verano.http.JoinedDict;
import hr.com.vgv.verano.http.request.Headers;

public class ApacheHeaders extends DictInput.Simple
{
    public ApacheHeaders(Header[] headers)
    {
        super(dict -> new JoinedDict(
            dict,
            new Headers(
                new Mapped<>(
                    header -> new hr.com.vgv.verano.http.request.Header(
                        header.getName(), header.getValue()
                    ),
                    headers
                )
            ).apply(dict))
        );
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy