ResourceServiceBuilder

org.http4s.server.staticcontent.ResourceServiceBuilder
See theResourceServiceBuilder companion object

Attributes

basePath

prefix of the path files will be served from

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
Source:
ResourceService.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def toRoutes(implicit F: Async[F]): HttpRoutes[F]

Attributes

Source:
ResourceService.scala

Attributes

Source:
ResourceService.scala