midden handler

Details

  • MiddenHandler: default handler

  • MiddenHandlerCrul: crul handler

Public fields

request

an http request

response

an http response

Methods

Public methods


Method new()

Create a new MiddenHandler object

Usage

MiddenHandler$new(request, response = NULL)

Arguments

request

an http request

response

an http response

Returns

A new MiddenHandler object


Method handle()

Handle the request (request given in $initialize())

Usage

MiddenHandler$handle(webmockr_stub_found = FALSE)

Arguments

webmockr_stub_found

(logical) whether a webmockr stub was found or not. default: FALSE

Returns

handles a request, outcomes vary


Method clone()

The objects of this class are cloneable with this method.

Usage

MiddenHandler$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Super class

webmiddens::MiddenHandler -> MiddenHandlerCrul

Methods

Public methods

Inherited methods

Method clone()

The objects of this class are cloneable with this method.

Usage

MiddenHandlerCrul$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.