The alias last_request is also available for the last request to go through the mocker.

This request object is a wrapper around a standard requests.Request object with some additional information that make the interface more workable (as the Request object is generally not dealt with by users.

The following parameters of the requests.request() call are also exposed via the request object:

timeout:

How long to wait for the server to send data before giving up.

allow_redirects:

Set to True if POST/PUT/DELETE redirect following is allowed.

proxies:

Dictionary mapping protocol to the URL of the proxy.

verify:

whether the SSL cert will be verified.

cert:

The client certificate or cert/key tuple for this request.

Note: That the default value of these attributes are the values that are passed to the adapter and not what is passed to the request method. This means that the default for allow_redirects is None (even though that is interpretted as True) if unset, whereas the defautl for verify is True, and the default for proxies the empty dict.