(Quick Reference)
head
Purpose
Invokes the
HEAD
method.
Examples
DSL Usage
ClientResponse response = jerseyRequestBuilder.head {
uri = "http://example.com"
}
Quick Usage
ClientResponse response = jerseyRequestBuilder.head("http://example.com")
Builder Usage
RequestProperties requestProperties = new RequestProperties()
requestProperties.uri = "http://example.com"
ClientResponse response = jerseyRequestBuilder.head(requestProperties)
Description
Invokes the
HEAD
method against the requested URI. The return from this method is always a ClientResponse, since the important
part of the response exists in the response headers.
HEAD
requests do not contain an entity, so the form
and body
properties are ignored.