toggle menu
http4k
6.9.0.0
jvm
switch theme
search in API
http4k-incubator
/
org.http4k.routing.experimental
/
ResourceLoaders
/
Classpath
Classpath
class
Classpath
(
basePackagePath
:
String
=
"/"
,
mimeTypes
:
MimeTypes
=
MimeTypes()
,
constantLastModified
:
Instant
?
=
Instant.now().truncatedTo(SECONDS)
,
lastModifiedFinder
:
(
path
:
String
)
->
Instant
?
=
{ constantLastModified }
)
:
RouteMatcher
<
Response
,
Filter
>
Members
Constructors
Classpath
Link copied to clipboard
constructor
(
basePackagePath
:
String
=
"/"
,
mimeTypes
:
MimeTypes
=
MimeTypes()
,
constantLastModified
:
Instant
?
=
Instant.now().truncatedTo(SECONDS)
,
lastModifiedFinder
:
(
path
:
String
)
->
Instant
?
=
{ constantLastModified }
)
Functions
match
Link copied to clipboard
open
override
fun
match
(
request
:
Request
)
:
RoutingMatch
<
Response
>
with
Base
Path
Link copied to clipboard
open
override
fun
withBasePath
(
prefix
:
String
)
:
RouteMatcher
<
Response
,
Filter
>
with
Filter
Link copied to clipboard
open
override
fun
withFilter
(
new
:
Filter
)
:
RouteMatcher
<
Response
,
Filter
>
with
Router
Link copied to clipboard
open
override
fun
withRouter
(
other
:
Router
)
:
RouteMatcher
<
Response
,
Filter
>