FakeRequest

play.api.test.FakeRequest
See theFakeRequest companion class

Object with helper methods for building FakeRequest values. This object uses a play.api.mvc.request.DefaultRequestFactory with default configuration to build the requests.

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Inherited methods

def apply[A](method: String, uri: String, headers: Headers, body: A, remoteAddress: String, version: String, id: Long, secure: Boolean, clientCertificateChain: Option[Seq[X509Certificate]], attrs: TypedMap): FakeRequest[A]

Type parameters

A

The body type.

Value parameters

body

The request body.

headers

The request HTTP headers.

method

The request HTTP method.

remoteAddress

The client IP.

uri

The request uri.

Attributes

Inherited from:
FakeRequestFactory

Attributes

Inherited from:
FakeRequestFactory
def apply(method: String, path: String): FakeRequest[AnyContentAsEmpty.type]

Constructs a new request.

Constructs a new request.

Attributes

Inherited from:
FakeRequestFactory

Constructs a new GET / fake request.

Constructs a new GET / fake request.

Attributes

Inherited from:
FakeRequestFactory