(Quick Reference)

chunkSize

Purpose

Enables chunking on the request.

Examples

jerseyRequestBuilder.post {
    uri = "http://example.com"
    chunkSize = 1024 // 1k chunk size
    body = "Example message"
}

Description

If not null, enables chunking on the request. If the value of this property is <= 0, the Jersey's default value will be used. Otherwise, the chunk size (in number of bytes) is used.