testRequest

Creates an internal test request.

static if(isWeb && isTesting)
void
testRequest
(
string route
,
HttpMethod method
,
scope void delegate responder
,
scope void delegate
(
scope HTTPClientRequest
)
requester = null
)

Parameters

route string

The route (not URL!) to call.

method HttpMethod

The method to use for thr request.

responder void delegate

The handler for the unittest result.

requester void delegate
(
scope HTTPClientRequest
)

Custom handler for the raw vibe.d request. Can be used to setup the request data etc.

Meta