Skip to content

@tripo3d/lens / server / createFetchTimingInterceptor

Function: createFetchTimingInterceptor() ​

ts
function createFetchTimingInterceptor(collector, sanitizeUrl?): FetchTimingInterceptor;

Defined in: src/server/interceptor.ts:84

创建 ofetch 形状拦截器(duck-type,不 import ofetch),记到指定 collector。 适合调用方手里就有 collector 的场景(如显式实例直挂)。

Parameters ​

ParameterTypeDefault value
collectorSsrPerfCollectorundefined
sanitizeUrl(url) => stringstripQuery

Returns ​

FetchTimingInterceptor

基于 MIT 协议发布(内部使用)