(Quick Reference)

options

Purpose

Invokes the OPTIONS method.

Examples

DSL Usage

ClientResponse response = jerseyRequestBuilder.options {
    uri = "http://example.com"
}

Quick Usage

ClientResponse response = jerseyRequestBuilder.options("http://example.com")

Builder Usage

RequestProperties requestProperties = new RequestProperties()
requestProperties.uri = "http://example.com"
ClientResponse response = jerseyRequestBuilder.options(requestProperties)

Description

Invokes the OPTIONS method against the requested URI. The return from this method depends on the options set on the request and the response from the server.

OPTIONS requests do not contain an entity, so the form and body properties are ignored.