okhttp / okhttp3 / Headers / Builder / set

set

operator fun set(name: String, value: Date): Headers.Builder

Set a field with the specified date. If the field is not found, it is added. If the field is found, the existing values are replaced.

@IgnoreJRERequirement operator fun set(name: String, value: Instant): Headers.Builder

Set a field with the specified instant. If the field is not found, it is added. If the field is found, the existing values are replaced.

operator fun set(name: String, value: String): Headers.Builder

Set a field with the specified value. If the field is not found, it is added. If the field is found, the existing values are replaced.