okhttp / okhttp3 / Response / Builder / header

header

open fun header(name: String, value: String): Response.Builder

Sets the header named name to value. If this request already has any headers with that name, they are all replaced.