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

com.iprogrammerr.bright.server.response.WithAdditionalHeadersResponse Maven / Gradle / Ivy

package com.iprogrammerr.bright.server.response;

import java.util.List;

import com.iprogrammerr.bright.server.header.Header;

public final class WithAdditionalHeadersResponse implements Response {

    private final Response base;

    public WithAdditionalHeadersResponse(Response base, List
additionalHeaders) { this.base = base; this.base.headers().addAll(additionalHeaders); } @Override public int code() { return base.code(); } @Override public List
headers() { return base.headers(); } @Override public boolean hasBody() { return base.hasBody(); } @Override public byte[] body() { return base.body(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy