Package

org.http4s.server

middleware

Permalink

package middleware

Visibility
  1. Public
  2. All

Type Members

  1. final case class CORSConfig(anyOrigin: Boolean, allowCredentials: Boolean, maxAge: Long, anyMethod: Boolean = true, allowedOrigins: (String) ⇒ Boolean = _ => false, allowedMethods: Option[Set[String]] = None, allowedHeaders: Option[Set[String]] = Set("Content-Type", "*").some, exposedHeaders: Option[Set[String]] = Set("*").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 DefaultHead

    Permalink

    Handles HEAD requests as a GET without a body.

    Handles HEAD requests as a GET without a body.

    If the service returns the fallthrough response, the request is resubmitted as a GET. The resulting response's body is killed, but all headers are preserved. This is a naive, but correct, implementation of HEAD. Routes requiring more optimization should implement their own HEAD handler.

  5. object EntityLimiter

    Permalink
  6. object GZip

    Permalink
  7. object HSTS

    Permalink

    Middleware to add HTTP Strict Transport Security (HSTS) support adding the Strict Transport Security headers

  8. object Jsonp

    Permalink

    Middleware to support wrapping json responses in jsonp.

    Middleware to support wrapping json responses in jsonp.

    Jsonp wrapping occurs when the request contains a parameter with the given name and the request Content-Type is application/json.

    If the wrapping is done, the response Content-Type is changed into application/javascript and the appropriate jsonp callback is applied.

  9. object Logger

    Permalink

    Simple Middleware for Logging All Requests and Responses

  10. object PushSupport

    Permalink
  11. object RequestLogger

    Permalink

    Simple Middleware for Logging Requests As They Are Processed

  12. object ResponseLogger

    Permalink

    Simple Middleware for Logging Responses As They Are Processed

  13. object Timeout

    Permalink
  14. object URITranslation

    Permalink
  15. 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.

  16. 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 org.http4s.headers.Host header of the org.http4s.Request.

  17. package authentication

    Permalink

Ungrouped