(Quick Reference)

contentType

Purpose

Sets the Content-Type header of the request.

Examples

jerseyRequestBuilder.post {
    uri = "http://example.com"
    contentType = "application/json"
}

Description

Sets the Content-Type header of the request.