org.http4s.server

middleware

package middleware

Visibility
  1. Public
  2. All

Type Members

  1. class CORS extends CORSF

    CORS middleware This middleware provides clients with CORS information based on information in CORS config.

    CORS middleware This middleware provides clients with CORS information based on information in CORS config. Currently, you cannot make permissions depend on request details

  2. 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

    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

    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

  3. object ChunkAggregator

  4. object EntityLimiter

  5. object GZip

  6. object Metrics

  7. object PushSupport

  8. object Timeout

  9. object URITranslation

  10. package authentication

Ungrouped