Learn R Programming

ambiorix (version 2.2.0)

mockRequest: Mock Request

Description

Mock a request, used for tests.

Usage

mockRequest(cookie = "", query = "", path = "/")

Value

A Request object.

Arguments

cookie

Cookie string.

query

Query string.

path

Path string.

Examples

Run this code
mockRequest()

Run the code above in your browser using DataLab