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
requestDefaultsMiddleware
Source
import { requestDefaultsMiddleware } from "@prestojs/rest";
requestDefaultsMiddleware
<
T
>
(
next
,
urlConfig
,
requestInit
)
Params:
Parameter
Type
Description
*
next
Function
*
urlConfig
MiddlewareUrlConfig
*
requestInit
EndpointRequestInit
Returns:
Promise