(Quick Reference)

headers

Purpose

Headers to send with the request.

Examples

jerseyRequestBuilder.post {
    uri = "http://example.com"
    headers = [
        "X-Auth-ApiKey": "a8205db2-3da5-11e3-a1f6-d4bed904d91e"
    ]
}

Description

Sets the key/value pairs to use as HTTP headers.