public interface GroovyByMethodSpec extends ByMethodSpec
ByContentSpec.| Modifier and Type | Method and Description |
|---|---|
GroovyByMethodSpec |
delete(Closure<?> closure)
Defines the action to to take if the request has a HTTP method of DELETE.
|
GroovyByMethodSpec |
get(Closure<?> closure)
Defines the action to to take if the request has a HTTP method of GET.
|
GroovyByMethodSpec |
named(String methodName,
Closure<?> closure)
Defines the action to to take if the request has a HTTP method of
methodName. |
GroovyByMethodSpec |
patch(Closure<?> closure)
Defines the action to to take if the request has a HTTP method of PATCH.
|
GroovyByMethodSpec |
post(Closure<?> closure)
Defines the action to to take if the request has a HTTP method of POST.
|
GroovyByMethodSpec |
put(Closure<?> closure)
Defines the action to to take if the request has a HTTP method of PUT.
|
GroovyByMethodSpec get(@DelegatesTo(value=GroovyContext.class) Closure<?> closure)
closure - The action to takeGroovyByMethodSpec post(@DelegatesTo(value=GroovyContext.class) Closure<?> closure)
closure - The action to takeGroovyByMethodSpec put(@DelegatesTo(value=GroovyContext.class) Closure<?> closure)
closure - The action to takeGroovyByMethodSpec patch(@DelegatesTo(value=GroovyContext.class) Closure<?> closure)
closure - The action to takeGroovyByMethodSpec delete(@DelegatesTo(value=GroovyContext.class) Closure<?> closure)
closure - The action to takeGroovyByMethodSpec named(String methodName, @DelegatesTo(value=GroovyContext.class) Closure<?> closure)
methodName.
The method name is case insensitive.
methodName - The HTTP method to map the given action toclosure - The action to take