HttpMethodOverrider
org.http4s.server.middleware.HttpMethodOverrider
object HttpMethodOverrider
Attributes
- Source
- HttpMethodOverrider.scala
- Graph
-
- Supertypes
- Self type
-
HttpMethodOverrider.type
Members list
Type members
Classlikes
final case class FormOverrideStrategy[F[_], G[_]](fieldName: String, naturalTransformation: FunctionK[G, F]) extends OverrideStrategy[F, G]
Attributes
- Source
- HttpMethodOverrider.scala
- Supertypes
final case class HeaderOverrideStrategy[F[_], G[_]](headerName: CIString) extends OverrideStrategy[F, G]
Attributes
- Source
- HttpMethodOverrider.scala
- Supertypes
class HttpMethodOverriderConfig[F[_], G[_]](val overrideStrategy: OverrideStrategy[F, G], val overridableMethods: Set[Method])
HttpMethodOverrider middleware config options.
HttpMethodOverrider middleware config options.
Attributes
- Companion
- object
- Source
- HttpMethodOverrider.scala
- Supertypes
object HttpMethodOverriderConfig
Attributes
- Companion
- class
- Source
- HttpMethodOverrider.scala
- Supertypes
- Self type
Attributes
- Source
- HttpMethodOverrider.scala
- Supertypes
- Known subtypes
-
final case class QueryOverrideStrategy[F[_], G[_]](paramName: String) extends OverrideStrategy[F, G]
Attributes
- Source
- HttpMethodOverrider.scala
- Supertypes
Value members
Concrete methods
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 to be dispatched properly.
Value parameters
- config
-
http method overrider config
- http
-
Http to transform
Attributes
- Source
- HttpMethodOverrider.scala
Attributes
- Source
- HttpMethodOverrider.scala
Concrete fields
Attributes
- Source
- HttpMethodOverrider.scala
In this article