header

fun header(key: String, value: String): Request

Sets the header of the request. If the header already exists, it will be overwritten

Return

this

Parameters

key

The key of the header

value

The value of the header