WebjarService

class Object
trait Matchable
class Any

Type members

Classlikes

final case class Config[F[_]](filter: WebjarAssetFilter, cacheStrategy: CacheStrategy[F])
Value Params
blocker

execution context for blocking I/O

cacheStrategy

strategy to use for caching purposes. Default to no caching.

filter

To filter which assets from the webjars should be served

final case class WebjarAsset(library: String, version: String, asset: String)

Contains the information about an asset inside a webjar

Contains the information about an asset inside a webjar

Value Params
asset

The asset name inside the webjar

library

The webjar's library name

version

The version of the webjar

Types

type WebjarAssetFilter = WebjarAsset => Boolean

A filter callback for Webjar asset It's a function that takes the WebjarAsset and returns whether or not the asset should be served to the client.

A filter callback for Webjar asset It's a function that takes the WebjarAsset and returns whether or not the asset should be served to the client.

Value members

Deprecated methods

@deprecated("use WebjarServiceBuilder", "1.0.0-M1")
def apply[F[_]](config: Config[F])(implicit F: Async[F]): HttpRoutes[F]

Creates a new HttpRoutes that will filter the webjars

Creates a new HttpRoutes that will filter the webjars

Value Params
config

The configuration for this service

Returns

The HttpRoutes

Deprecated