-
- All Implemented Interfaces:
-
kotlin.Function,kotlin.Function1
public final class FileCallback implements Function1<HttpServerContext, HttpServerContext>
Callback that resolves requests' path parameters to files based on a base file. Requests path parameters are not allowed to contain
..(references to file parent directories are not permitted).If request does not have path parameters file will be returned (or not found if file is a directory).
-
-
Constructor Summary
Constructors Constructor Description FileCallback(File file)
-
Method Summary
Modifier and Type Method Description HttpServerContextinvoke(HttpServerContext context)-
-
Method Detail
-
invoke
HttpServerContext invoke(HttpServerContext context)
-
-
-
-