HttpMethodOverrider

org.http4s.server.middleware.HttpMethodOverrider$

Attributes

Source
HttpMethodOverrider.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self 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
trait Serializable
trait Product
trait Equals
trait OverrideStrategy[F, G]
class Object
trait Matchable
class Any
Show all
final case class HeaderOverrideStrategy[F[_], G[_]](headerName: CIString) extends OverrideStrategy[F, G]

Attributes

Source
HttpMethodOverrider.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait OverrideStrategy[F, G]
class Object
trait Matchable
class Any
Show all
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
class Object
trait Matchable
class Any

Attributes

Companion
class
Source
HttpMethodOverrider.scala
Supertypes
class Object
trait Matchable
class Any
Self type
sealed trait OverrideStrategy[F[_], G[_]]

Attributes

Source
HttpMethodOverrider.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
final case class QueryOverrideStrategy[F[_], G[_]](paramName: String) extends OverrideStrategy[F, G]

Attributes

Source
HttpMethodOverrider.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait OverrideStrategy[F, G]
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def apply[F[_], G[_]](http: Http[F, G], config: HttpMethodOverriderConfig[F, G])(implicit F: Monad[F], S: Concurrent[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 to be dispatched properly.

Value parameters

config

http method overrider config

http

Http to transform

Attributes

Source
HttpMethodOverrider.scala
def defaultConfig[F[_], G[_]]: HttpMethodOverriderConfig[F, G]

Attributes

Source
HttpMethodOverrider.scala

Concrete fields