FakeRequestFactory

play.api.test.FakeRequestFactory
class FakeRequestFactory(requestFactory: RequestFactory)

Helper methods for building FakeRequest values.

Value parameters

requestFactory

Used to construct the wrapped requests.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object FakeRequest.type

Members list

Value members

Concrete methods

Constructs a new GET / fake request.

Constructs a new GET / fake request.

Attributes

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

Constructs a new request.

Constructs a new request.

Attributes

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