object HttpMethodOverrider
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- HttpMethodOverrider
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- final case class FormOverrideStrategy[F[_], G[_]](fieldName: String, naturalTransformation: ~>[G, F]) extends OverrideStrategy[F, G] with Product with Serializable
- final case class HeaderOverrideStrategy[F[_], G[_]](headerName: CaseInsensitiveString) extends OverrideStrategy[F, G] with Product with Serializable
-
class
HttpMethodOverriderConfig[F[_], G[_]] extends AnyRef
HttpMethodOverrider middleware config options.
- sealed trait OverrideStrategy[F[_], G[_]] extends AnyRef
- final case class QueryOverrideStrategy[F[_], G[_]](paramName: String) extends OverrideStrategy[F, G] with Product with Serializable
Value Members
-
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
- def defaultConfig[F[_], G[_]]: HttpMethodOverriderConfig[F, G]
- val overriddenMethodAttrKey: Key[Method]
- object HttpMethodOverriderConfig