rest-assured/src/main/java/io/restassured/internal/http/HTTPBuilder.java
public Object patch(Map<String, ?> args, Closure responseClosure)
            throws URISyntaxException, ClientProtocolException, IOException {
        RequestConfigDelegate delegate = new RequestConfigDelegate(new HttpPatch(),
                this.defaultContentType,
                this.defaultRequestHeaders,
                this.defaultResponseHandlers);

        /* by default assume the request body will be URLEncoded, but allow
             the 'requestContentType' named argument to override this if it is
             given */
        delegate.setRequestContentType(ContentType.URLENC.toString());
        delegate.setPropertiesFromMap(args);

        if (responseClosure != null) {
            delegate.getResponse().put(Status.SUCCESS.toString(), responseClosure);
            delegate.getResponse().put(Status.FAILURE.toString(), responseClosure);
        }

        return this.doRequest(delegate);
    }
public Object patch(Map<String, ?> args, Closure responseClosure)
            throws URISyntaxException, ClientProtocolException, IOException {
        RequestConfigDelegate delegate = new RequestConfigDelegate(new HttpPatch(),
                this.defaultContentType,
                this.defaultRequestHeaders,
                this.defaultResponseHandlers);

        /* by default assume the request body will be URLEncoded, but allow
             the 'requestContentType' named argument to override this if it is
             given */
        delegate.setRequestContentType(ContentType.URLENC.toString());
        delegate.setPropertiesFromMap(args);

        if (responseClosure != null) {
            delegate.getResponse().put(Status.SUCCESS.toString(), responseClosure);
            delegate.getResponse().put(Status.FAILURE.toString(), responseClosure);
        }

        return this.doRequest(delegate);
    }
public Object patch ( Map < String , ? > args , Closure responseClosure ) throws URISyntaxException , ClientProtocolException , IOException { RequestConfigDelegate delegate = new RequestConfigDelegate ( new HttpPatch ( ) , this . defaultContentType , this . defaultRequestHeaders , this . defaultResponseHandlers ) ; /* by default assume the request body will be URLEncoded, but allow
             the 'requestContentType' named argument to override this if it is
             given */ delegate . setRequestContentType ( ContentType . URLENC . toString ( ) ) ; delegate . setPropertiesFromMap ( args ) ; if ( responseClosure != null ) { delegate . getResponse ( ) . put ( Status . SUCCESS . toString ( ) , responseClosure ) ; delegate . getResponse ( ) . put ( Status . FAILURE . toString ( ) , responseClosure ) ; } return this . doRequest ( delegate ) ; }
<p>
Convenience method to perform an HTTP form PATCH.  The response closure will be
called only on a successful response.</p>
<p>
<p>A 'failed' response (i.e. any
HTTP status code > 399) will be handled by the registered 'failure'
handler.  The {@link #defaultFailureHandler(HttpResponseDecorator) default
failure handler} throws an {@link HttpResponseException}.</p>
<p>
<p>The request body (specified by a <code>body</code> named parameter)
will be converted to a url-encoded form string unless a different
<code>requestContentType</code> named parameter is passed to this method.
(See {@link EncoderRegistry#encodeForm(Map)}.) </p>

@param args            see {@link RequestConfigDelegate#setPropertiesFromMap(Map)}
@param responseClosure code to handle a successful HTTP response
@return any value returned by the response closure.
@throws ClientProtocolException
@throws IOException
@throws URISyntaxException      if a uri argument is given which does not
represent a valid URI
<p > Convenience method to perform an HTTP form PATCH . The response closure will be called only on a successful response . < / p > <p > <p > A failed response ( i . e . any HTTP status code > 399 ) will be handled by the registered failure handler . The { @link #defaultFailureHandler ( HttpResponseDecorator ) default failure handler } throws an { @link HttpResponseException } . < / p > <p > <p > The request body ( specified by a <code > body< / code > named parameter ) will be converted to a url - encoded form string unless a different <code > requestContentType< / code > named parameter is passed to this method . ( See { @link EncoderRegistry#encodeForm ( Map ) } . ) < / p >