use

fun use(middleware: Middleware): Request

adds an Middleware to handle all requests and responses.

Parameters

middleware

Middleware to use by this request


fun use(vararg middlewares: Middleware): Request

adds Middlewares to handle all requests and responses.

Parameters

middlewares

Middleware to use by this request