(Quick Reference)

delete

Purpose

Invokes the DELETE method.

Examples

DSL Usage

def response = jerseyRequestBuilder.delete {
    uri = "http://example.com/resource"
}

Quick Usage

def response = jerseyRequestBuilder.delete("http://example.com/resource")

Builder Usage

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

Description

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

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