Package

org.http4s.server

middleware

Permalink

package middleware

Visibility
  1. Public
  2. All

Type Members

  1. case class CORSConfig(anyOrigin: Boolean, allowCredentials: Boolean, maxAge: Long, anyMethod: Boolean = true, allowedOrigins: Option[Set[String]] = None, allowedMethods: Option[Set[String]] = None, allowedHeaders: Option[Set[String]] = Set("Content-Type", "*").some) extends Product with Serializable

    Permalink

    CORS middleware config options.

    CORS middleware config options. You can give an instance of this class to the CORS middleware, to specify its behavoir

Value Members

  1. object AutoSlash

    Permalink

    Removes a trailing slash from Request path

    Removes a trailing slash from Request path

    If a route exists with a file style Uri, eg "/foo", this middleware will cause Requests with uri = "/foo" and uri = "/foo/" to match the route.

  2. object CORS

    Permalink
  3. object ChunkAggregator

    Permalink
  4. object EntityLimiter

    Permalink
  5. object GZip

    Permalink
  6. object Metrics

    Permalink
  7. object PushSupport

    Permalink
  8. object Timeout

    Permalink
  9. object URITranslation

    Permalink
  10. object UrlFormLifter

    Permalink

    Middleware for lifting application/x-www-form-urlencoded bodies into the request query params.

    Middleware for lifting application/x-www-form-urlencoded bodies into the request query params.

    The params are merged into the existing paras _after_ the existing query params. This means that if the query already contains the pair "foo" -> Some("bar"), parameters on the body must be acessed through multiParams.

  11. object VirtualHost

    Permalink

    Middleware for virtual host mapping

    Middleware for virtual host mapping

    The VirtualHost middleware allows multiple services to be mapped based on the Host header of the Request.

  12. package authentication

    Permalink

Ungrouped