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

hr.com.vgv.verano.http.response.Response Maven / Gradle / Ivy

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

import hr.com.vgv.verano.http.Assertion;
import hr.com.vgv.verano.http.Dict;
import hr.com.vgv.verano.http.HashDict;
import hr.com.vgv.verano.http.Wire;
import hr.com.vgv.verano.http.wire.AssertionWire;

public class Response extends Dict.Template
{
    public Response(Wire wire, Assertion assertion) {
        this(wire, new HashDict(), assertion);
    }

    public Response(Wire wire, Dict request) {
        this(wire, request, in -> {});
    }

    public Response(Wire wire, Dict request, Assertion assertion)
    {
        super(() -> new AssertionWire(wire, assertion).send(request));
    }

    public final void touch() {
        this.iterator();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy