(Quick Reference)

accept

Purpose

Sets the Accept header of the request.

Examples

jerseyRequestBuilder.get {
    uri = "http://example.com"
    accept = "text/html"
}

Description

Sets the Accept header of the outgoing request. This option informs the server that the client expects a certain Content-Type in the response.