-
-
Save jwalgemoed/544f7cbdecdf3620b5c52edb69664e5f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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