HeaderMap

annotation class HeaderMap

Add headers to a request

@GET("comments")
suspend fun requestWithHeaders(@HeaderMap headerMap : Map<String,String>): List<Comment>

By default, Headers do not overwrite each other: all headers with the same name will be included in the request. Except headers mentioned as singleton, e.g. Content-Type

See also