(Quick Reference)

binaryResponse

Purpose

Always return the raw byte array from the response.

Examples

def response = jerseyRequestBuilder.get {
    uri = "http://example.com"
    binaryResponse = true
}
assert(response instanceof byte[])

Description

Informs the Jersey Request Builder to skip any data conversion and return the raw byte array from the response.