setContentType

fun setContentType(contentType: String, params: <Error class: unknown class>? = null)

Sets the "Content-Type" header in @hdrs to @content_type.

Accepts additional parameters specified in @params.

Parameters

contentType

the MIME type

params

additional parameters