public interface Router
| Modifier and Type | Method and Description |
|---|---|
Router |
delete(String relativePath,
Consumer<? extends WindwardContext> consumer)
register function with delete method
|
<R> Router |
delete(String relativePath,
Supplier<R> supplier)
register function with delete method
|
Router |
get(String relativePath,
Consumer<? extends WindwardContext> consumer)
register function with get method
|
<R> Router |
get(String relativePath,
Supplier<R> supplier)
register function with get method
|
Router |
post(String relativePath,
Consumer<? extends WindwardContext> consumer)
register function with post method
|
<R> Router |
post(String relativePath,
Supplier<R> supplier)
register function with post method
|
Router |
put(String relativePath,
Consumer<? extends WindwardContext> consumer)
register function with put method
|
<R> Router |
put(String relativePath,
Supplier<R> supplier)
register function with put method
|
<R> Router get(String relativePath, Supplier<R> supplier)
R - response datarelativePath - relativePathsupplier - supplierRouter get(String relativePath, Consumer<? extends WindwardContext> consumer)
relativePath - relativePathconsumer - function to consume<R> Router put(String relativePath, Supplier<R> supplier)
R - response datarelativePath - relativePathsupplier - supplierRouter put(String relativePath, Consumer<? extends WindwardContext> consumer)
relativePath - relativePathconsumer - function to consume<R> Router post(String relativePath, Supplier<R> supplier)
R - response datarelativePath - relativePathsupplier - supplierRouter post(String relativePath, Consumer<? extends WindwardContext> consumer)
relativePath - relativePathconsumer - function to consume<R> Router delete(String relativePath, Supplier<R> supplier)
R - response datarelativePath - relativePathsupplier - supplierRouter delete(String relativePath, Consumer<? extends WindwardContext> consumer)
relativePath - relativePathconsumer - function to consumeCopyright © 2023 flmelody. All rights reserved.