<Self>(): <
ApiId extends string,
Groups extends HttpApiGroup.Constraint,
const Name extends string,
const MK extends string = "metrics"
>(
key: Name,
api: HttpApiType.HttpApi<ApiId, Groups>,
config?: HttpApiClientTagConfig & { readonly metricsKey?: MK }
) => StampedHttpApiClientTag<Self, Groups, MK>Class factory: Hyperlink Tag for an HttpApi client — no baked .layer.
Pair with httpApiClientLayer.
constructorshttpApiClientLayer
Source src/internal/httpApiClient.ts:79743 lines
export const const HttpApiClient: <Self>() => <
ApiId extends string,
Groups extends HttpApiGroup.Constraint,
Name extends string,
MK extends string = "metrics"
>(
key: Name,
api: HttpApiType.HttpApi<ApiId, Groups>,
config?: HttpApiClientTagConfig & {
readonly metricsKey?: MK
}
) => StampedHttpApiClientTag<Self, Groups, MK>
Class factory: Hyperlink Tag for an HttpApi client — no baked .layer.
Pair with
httpApiClientLayer
.
HttpApiClient = <function (type parameter) Self in <Self>(): <ApiId extends string, Groups extends HttpApiGroup.Constraint, const Name extends string, const MK extends string = "metrics">(key: Name, api: HttpApiType.HttpApi<ApiId, Groups>, config?: HttpApiClientTagConfig & {
readonly metricsKey?: MK;
}) => StampedHttpApiClientTag<Self, Groups, MK>
Self>() =>
<
function (type parameter) ApiId in <ApiId extends string, Groups extends HttpApiGroup.Constraint, const Name extends string, const MK extends string = "metrics">(key: Name, api: HttpApiType.HttpApi<ApiId, Groups>, config?: HttpApiClientTagConfig & {
readonly metricsKey?: MK;
}): StampedHttpApiClientTag<Self, Groups, MK>
ApiId extends string,
function (type parameter) Groups in <ApiId extends string, Groups extends HttpApiGroup.Constraint, const Name extends string, const MK extends string = "metrics">(key: Name, api: HttpApiType.HttpApi<ApiId, Groups>, config?: HttpApiClientTagConfig & {
readonly metricsKey?: MK;
}): StampedHttpApiClientTag<Self, Groups, MK>
Groups extends import HttpApiGroupHttpApiGroup.Constraint,
const function (type parameter) Name in <ApiId extends string, Groups extends HttpApiGroup.Constraint, const Name extends string, const MK extends string = "metrics">(key: Name, api: HttpApiType.HttpApi<ApiId, Groups>, config?: HttpApiClientTagConfig & {
readonly metricsKey?: MK;
}): StampedHttpApiClientTag<Self, Groups, MK>
Name extends string,
const function (type parameter) MK in <ApiId extends string, Groups extends HttpApiGroup.Constraint, const Name extends string, const MK extends string = "metrics">(key: Name, api: HttpApiType.HttpApi<ApiId, Groups>, config?: HttpApiClientTagConfig & {
readonly metricsKey?: MK;
}): StampedHttpApiClientTag<Self, Groups, MK>
MK extends string = "metrics",
>(
key: const Name extends stringkey: function (type parameter) Name in <ApiId extends string, Groups extends HttpApiGroup.Constraint, const Name extends string, const MK extends string = "metrics">(key: Name, api: HttpApiType.HttpApi<ApiId, Groups>, config?: HttpApiClientTagConfig & {
readonly metricsKey?: MK;
}): StampedHttpApiClientTag<Self, Groups, MK>
Name,
api: HttpApi.HttpApi<ApiId, Groups>(parameter) api: {
identifier: Id;
groups: GroupMap<Groups>;
annotations: Context.Context<never>;
add: (...groups: A) => HttpApi.HttpApi<ApiId, Groups | A[number]>;
addHttpApi: (api: HttpApi.HttpApi<Id2, Groups2>) => HttpApi.HttpApi<ApiId, Groups | Groups2>;
prefix: (prefix: Prefix) => HttpApi.HttpApi<ApiId, HttpApiGroup.AddPrefix<Groups, Prefix>>;
middleware: (middleware: Context.Key<I, S>) => HttpApi.HttpApi<ApiId, HttpApiGroup.AddMiddleware<Groups, I>>;
annotate: (tag: Context.Key<I, S>, value: S) => HttpApi.HttpApi<ApiId, Groups>;
annotateMerge: (context: Context.Context<I>) => HttpApi.HttpApi<ApiId, Groups>;
pipe: { <A>(this: A): A; <A, B = never>(this: A, ab: (_: A) => B): B; <A, B = never, C = never>(this: A, ab: (_: A) => B, bc: (_: B) => C): C; <A, B = never, C = never, D = never>(this: A, ab: (_: A {if (document.readyState === 'loading') {document.addEventListener('DOMContentLoaded', () => c.close());} else {c.close();}};}})));return e;})();
import("/assets/index-C38776tp.js")
globalThis.__WAKU_ROUTER_PREFETCH__ = (path, callback) => {
const ids = ["/assets/client-DvW4M26S.js","/assets/index-C38776tp.js","/assets/jsx-runtime-n5LQ9ujS.js","/assets/_layout-DLGMFcVw.js","/assets/CopyButton-B_brwLWt.js","/assets/SearchPanel-BPhX05K2.js","/assets/SearchHit-Ae6saVvd.js","/assets/CopyButton-B3FDhiBB.js","/assets/QueueIsland-BNX1DJOj.js","/assets/atom-react-CmfSLmR2.js","/assets/Ref-DZMmTnOL.js","/assets/LogContext-B1abbrE6.js","/assets/HashSet-CQIPc4Xt.js","/assets/RateLimiter-BdL5Xc5j.js","/assets/404-BRkDOse0.js","/assets/search-BHt3EnIm.js"];
const path2idxs = {"^/\\(book\\)/api/hyperlink-ts/([^/]+)/([^/]+)$":[0,1,2,3,4,5,6],"^/\\(book\\)/docs/([^/]+)$":[0,1,2,3,4,5,6,7,8,9,10,11,12,13],"^/\\(book\\)/api/([^/]+)$":[0,1,2,3,4,5,6],"^/\\(book\\)/api/([^/]+)/([^/]+)$":[0,1,2,3,4,5,6],"^/docs/hyperlinks$":[0,1,2,3,4,5,6],"^/docs/resources$":[0,1,2,3,4,5,6],"^/404$":[0,1,2,3,4,5,6,14],"^/api$":[0,1,2,3,4,5,6],"^/search$":[0,1,2,3,4,5,6,15],"^/$":[0,1,2],"^/releases$":[0,1,2,3,4,5,6]};
const key = Object.keys(path2idxs).find((key) => new RegExp(key).test(path));
for (const idx of path2idxs[key] || []) {
callback(ids[idx]);
}
};