-
- All Implemented Interfaces:
public final class HandlersKt
-
-
Method Summary
Modifier and Type Method Description final static HttpServerContextprocess(Function1<HttpServerContext, HttpServerContext> $self, HttpServerRequest request, Map<?, ?> attributes)final static HttpServerContextprocess(Function1<HttpServerContext, HttpServerContext> $self, HttpMethod method, HttpProtocol protocol, String host, Integer port, String path, HttpFields<QueryParameter> queryParameters, HttpFields<Header> headers, Object body, List<HttpPart> parts, HttpFields<FormParameter> formParameters, List<HttpCookie> cookies, ContentType contentType, List<X509Certificate> certificateChain, List<ContentType> accept, Long contentLength, Map<?, ?> attributes)final static PathHandlerpath(String pattern, Function1<ServerBuilder, Unit> block)final static PathHandlerpath(String contextPath, List<ServerHandler> handlers)final static OnHandleron(HttpServerPredicate predicate, Function1<HttpServerContext, HttpServerContext> callback)final static OnHandleron(Set<HttpMethod> methods, String pattern, KClass<out Exception> exception, HttpStatus status, Function1<HttpServerContext, HttpServerContext> callback)final static OnHandleron(HttpMethod method, String pattern, Function1<HttpServerContext, HttpServerContext> callback)final static OnHandleron(String pattern, Function1<HttpServerContext, HttpServerContext> callback)final static FilterHandlerfilter(HttpServerPredicate predicate, Function1<HttpServerContext, HttpServerContext> callback)final static FilterHandlerfilter(Set<HttpMethod> methods, String pattern, KClass<out Exception> exception, HttpStatus status, Function1<HttpServerContext, HttpServerContext> callback)final static FilterHandlerfilter(HttpMethod method, String pattern, Function1<HttpServerContext, HttpServerContext> callback)final static FilterHandlerfilter(String pattern, Function1<HttpServerContext, HttpServerContext> callback)final static AfterHandlerafter(HttpServerPredicate predicate, Function1<HttpServerContext, HttpServerContext> callback)final static AfterHandlerafter(Set<HttpMethod> methods, String pattern, KClass<out Exception> exception, HttpStatus status, Function1<HttpServerContext, HttpServerContext> callback)final static AfterHandlerafter(HttpMethod method, String pattern, Function1<HttpServerContext, HttpServerContext> callback)final static AfterHandlerafter(String pattern, Function1<HttpServerContext, HttpServerContext> callback)final static <T extends Exception> AfterHandlerexception(KClass<T> exception, HttpStatus status, Function2<HttpServerContext, T, HttpServerContext> callback)final static <T extends Exception> AfterHandlerexception(HttpStatus status, Function2<HttpServerContext, T, HttpServerContext> callback)final static OnHandlerget(String pattern, Function1<HttpServerContext, HttpServerContext> callback)final static OnHandlerhead(String pattern, Function1<HttpServerContext, HttpServerContext> callback)final static OnHandlerpost(String pattern, Function1<HttpServerContext, HttpServerContext> callback)final static OnHandlerput(String pattern, Function1<HttpServerContext, HttpServerContext> callback)final static OnHandlerdelete(String pattern, Function1<HttpServerContext, HttpServerContext> callback)final static OnHandlertrace(String pattern, Function1<HttpServerContext, HttpServerContext> callback)final static OnHandleroptions(String pattern, Function1<HttpServerContext, HttpServerContext> callback)final static OnHandlerpatch(String pattern, Function1<HttpServerContext, HttpServerContext> callback)-
-
Method Detail
-
process
final static HttpServerContext process(Function1<HttpServerContext, HttpServerContext> $self, HttpServerRequest request, Map<?, ?> attributes)
-
process
final static HttpServerContext process(Function1<HttpServerContext, HttpServerContext> $self, HttpMethod method, HttpProtocol protocol, String host, Integer port, String path, HttpFields<QueryParameter> queryParameters, HttpFields<Header> headers, Object body, List<HttpPart> parts, HttpFields<FormParameter> formParameters, List<HttpCookie> cookies, ContentType contentType, List<X509Certificate> certificateChain, List<ContentType> accept, Long contentLength, Map<?, ?> attributes)
-
path
final static PathHandler path(String pattern, Function1<ServerBuilder, Unit> block)
-
path
final static PathHandler path(String contextPath, List<ServerHandler> handlers)
-
on
final static OnHandler on(HttpServerPredicate predicate, Function1<HttpServerContext, HttpServerContext> callback)
-
on
final static OnHandler on(Set<HttpMethod> methods, String pattern, KClass<out Exception> exception, HttpStatus status, Function1<HttpServerContext, HttpServerContext> callback)
-
on
final static OnHandler on(HttpMethod method, String pattern, Function1<HttpServerContext, HttpServerContext> callback)
-
on
final static OnHandler on(String pattern, Function1<HttpServerContext, HttpServerContext> callback)
-
filter
final static FilterHandler filter(HttpServerPredicate predicate, Function1<HttpServerContext, HttpServerContext> callback)
-
filter
final static FilterHandler filter(Set<HttpMethod> methods, String pattern, KClass<out Exception> exception, HttpStatus status, Function1<HttpServerContext, HttpServerContext> callback)
-
filter
final static FilterHandler filter(HttpMethod method, String pattern, Function1<HttpServerContext, HttpServerContext> callback)
-
filter
final static FilterHandler filter(String pattern, Function1<HttpServerContext, HttpServerContext> callback)
-
after
final static AfterHandler after(HttpServerPredicate predicate, Function1<HttpServerContext, HttpServerContext> callback)
-
after
final static AfterHandler after(Set<HttpMethod> methods, String pattern, KClass<out Exception> exception, HttpStatus status, Function1<HttpServerContext, HttpServerContext> callback)
-
after
final static AfterHandler after(HttpMethod method, String pattern, Function1<HttpServerContext, HttpServerContext> callback)
-
after
final static AfterHandler after(String pattern, Function1<HttpServerContext, HttpServerContext> callback)
-
exception
final static <T extends Exception> AfterHandler exception(KClass<T> exception, HttpStatus status, Function2<HttpServerContext, T, HttpServerContext> callback)
-
exception
final static <T extends Exception> AfterHandler exception(HttpStatus status, Function2<HttpServerContext, T, HttpServerContext> callback)
-
get
final static OnHandler get(String pattern, Function1<HttpServerContext, HttpServerContext> callback)
-
head
final static OnHandler head(String pattern, Function1<HttpServerContext, HttpServerContext> callback)
-
post
final static OnHandler post(String pattern, Function1<HttpServerContext, HttpServerContext> callback)
-
put
final static OnHandler put(String pattern, Function1<HttpServerContext, HttpServerContext> callback)
-
delete
final static OnHandler delete(String pattern, Function1<HttpServerContext, HttpServerContext> callback)
-
trace
final static OnHandler trace(String pattern, Function1<HttpServerContext, HttpServerContext> callback)
-
options
final static OnHandler options(String pattern, Function1<HttpServerContext, HttpServerContext> callback)
-
patch
final static OnHandler patch(String pattern, Function1<HttpServerContext, HttpServerContext> callback)
-
-
-
-