Skip to content

Instantly share code, notes, and snippets.

@jwalgemoed jwalgemoed/headers.kt Secret
Last active Dec 28, 2017

Embed
What would you like to do?
fun HttpHeaders.accept(value: String) {
this.put(HttpHeaders.ACCEPT, listOf(value))
}
fun HttpHeaders.contentType(value: String) {
this.put(HttpHeaders.CONTENT_TYPE, listOf(value))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.