WebjarService

org.http4s.server.staticcontent.WebjarService
object WebjarService

Attributes

Source
WebjarService.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

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

Value parameters

cacheStrategy

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

filter

To filter which assets from the webjars should be served

Attributes

Source
WebjarService.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
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 parameters

asset

The asset name inside the webjar

library

The webjar's library name

version

The version of the webjar

Attributes

Source
WebjarService.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Types

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.

Attributes

Source
WebjarService.scala

Value members

Deprecated methods

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 parameters

config

The configuration for this service

Attributes

Returns

The HttpRoutes

Deprecated
true
Source
WebjarService.scala