Presto
GitHub
Getting Started
Guides
Packages
View Model
Final Form
REST
Endpoint
ApiError
Endpoint
mergeRequestInit
MiddlewareContext
PreparedAction
SkipToResponse
Middleware
batchMiddleware
dedupeInFlightRequestsMiddleware
detectBadPaginationMiddleware
paginationMiddleware
requestDefaultsMiddleware
viewModelCachingMiddleware
Routing
UI
UI ANTD
Util
On this page
Arguments
requestDefaultsMiddleware
Source
import { requestDefaultsMiddleware } from "@prestojs/rest";
requestDefaultsMiddleware
<
T
>
(
next
,
urlConfig
,
requestInit
)
Arguments:
Argument
Type
Description
*
next
Function
*
urlConfig
MiddlewareUrlConfig
*
requestInit
EndpointRequestInit
Returns:
Promise