o

org.http4s.server.middleware

HttpMethodOverrider

object HttpMethodOverrider

Source
HttpMethodOverrider.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HttpMethodOverrider
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final case class FormOverrideStrategy[F[_], G[_]](fieldName: String, naturalTransformation: ~>[G, F]) extends OverrideStrategy[F, G] with Product with Serializable
  2. final case class HeaderOverrideStrategy[F[_], G[_]](headerName: CaseInsensitiveString) extends OverrideStrategy[F, G] with Product with Serializable
  3. class HttpMethodOverriderConfig[F[_], G[_]] extends AnyRef

    HttpMethodOverrider middleware config options.

  4. sealed trait OverrideStrategy[F[_], G[_]] extends AnyRef
  5. final case class QueryOverrideStrategy[F[_], G[_]](paramName: String) extends OverrideStrategy[F, G] with Product with Serializable

Value Members

  1. def apply[F[_], G[_]](http: Http[F, G], config: HttpMethodOverriderConfig[F, G])(implicit F: Monad[F], S: Sync[G]): Http[F, G]

    Simple middleware for HTTP Method Override.

    Simple middleware for HTTP Method Override.

    This middleware lets you use HTTP verbs such as PUT or DELETE in places where the client doesn't support it. Camouflage your request with another HTTP verb(usually POST) and sneak the desired one using a custom header or request parameter. The middleware will override the original verb with the new one for you, allowing the request the be dispatched properly.

    http

    Http to transform

    config

    http method overrider config

  2. def defaultConfig[F[_], G[_]]: HttpMethodOverriderConfig[F, G]
  3. val overriddenMethodAttrKey: Key[Method]
  4. object HttpMethodOverriderConfig