ru.tinkoff.kora.http.server.common.SimpleHttpServerResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http-server-common Show documentation
Show all versions of http-server-common Show documentation
Kora http-server-common module
package ru.tinkoff.kora.http.server.common;
import jakarta.annotation.Nullable;
import ru.tinkoff.kora.http.common.body.HttpBodyOutput;
import ru.tinkoff.kora.http.common.header.MutableHttpHeaders;
public record SimpleHttpServerResponse(int code, MutableHttpHeaders headers, @Nullable HttpBodyOutput body) implements HttpServerResponse {
@Override
public String toString() {
return "HttpServerResponseException{code=" + code() +
", bodyLength=" + ((body != null) ? body.contentLength() : -1) +
", bodyType=" + ((body != null) ? body.contentType() : -1) +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy