ru.tinkoff.kora.http.common.HttpResponseEntityImpl Maven / Gradle / Ivy
The newest version!
package ru.tinkoff.kora.http.common;
import ru.tinkoff.kora.http.common.header.HttpHeaders;
import ru.tinkoff.kora.http.common.header.MutableHttpHeaders;
record HttpResponseEntityImpl(int code, MutableHttpHeaders headers, T body) implements HttpResponseEntity {
@Override
public String toString() {
return "HttpResponseEntity{code=" + code() + ", headers=" + HttpHeaders.toStringPlain(headers()) + '}';
}
}