WSRequestFilter

play.api.libs.ws.WSRequestFilter
See theWSRequestFilter companion object

A request filter. Override this trait to implement your own filters:

import play.api.libs.ws.{ WSRequestFilter, WSRequestExecutor }

class HeaderAppendingFilter(key: String, value: String) extends WSRequestFilter {
 override def apply(executor: WSRequestExecutor): WSRequestExecutor = {
   WSRequestExecutor(r => executor(r.withHttpHeaders((key, value))))
 }
}

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Inherited methods

Attributes

Inherited from:
Function1

Attributes

Inherited from:
Function1
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Function1 -> Any
Inherited from:
Function1

Inherited and Abstract methods

Attributes

Inherited from:
Function1