MCPcopy Create free account
hub / github.com/middleapi/orpc / createRequest

Function createRequest

packages/pino/src/handler-plugin.test.ts:51–61  ·  view source on GitHub ↗
(method: string, url: string, signal?: AbortSignal)

Source from the content-addressed store, hash-verified

49}
50
51function createRequest(method: string, url: string, signal?: AbortSignal): StandardLazyRequest {
52 return {
53 method,
54 url: new URL(url),
55 headers: {
56 'content-type': 'application/json',
57 },
58 body: () => Promise.resolve(undefined),
59 signal,
60 }
61}
62
63describe('loggingHandlerPlugin', () => {
64 const codec = new StandardRPCCodec(new StandardRPCSerializer(new StandardRPCJsonSerializer()))

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected