ResourceServiceBuilder

Value Params
basePath

prefix of the path files will be served from

blocker

execution context to use when collecting content

bufferSize

size hint of internal buffers to use when serving resources

cacheStrategy

strategy to use for caching purposes.

classLoader

optional classloader for extracting the resources

pathPrefix

prefix of the Uri that content will be served from

preferGzipped

whether to serve pre-gzipped files (with extension ".gz") if they exist

Companion
object
class Object
trait Matchable
class Any

Value members

Concrete methods

def toRoutes(implicit F: Async[F]): HttpRoutes[F]
def withBasePath(basePath: String): ResourceServiceBuilder[F]
def withBufferSize(bufferSize: Int): ResourceServiceBuilder[F]
def withClassLoader(classLoader: Option[ClassLoader]): ResourceServiceBuilder[F]
def withPathPrefix(pathPrefix: String): ResourceServiceBuilder[F]
def withPreferGzipped(preferGzipped: Boolean): ResourceServiceBuilder[F]