MCPcopy Create free account

hub / github.com/Markonis/hndl / functions

Functions29 in github.com/Markonis/hndl

↓ 15 callersFunctionparsePathWithParams
(url: string, pattern: string)
src/accept-path.ts:31
↓ 10 callersFunctionservice
({ endpoint: rootEndpoint, errorHandler = defaultErrorHandler, logger = defaultLogger, }: ServiceProps)
src/service.ts:15
↓ 8 callersFunctioncreateMockResponse
()
tests/service.ts:7
↓ 3 callersFunctionendpoint
(def: Endpoint<T>)
src/endpoint.ts:3
↓ 3 callersFunctionrouter
(...endpoints: Endpoint<any>[])
src/endpoint.ts:5
↓ 2 callersFunctionstaticFiles
({ dir, route = "", dynamic = false, pathRewriter = defaultPathRewriter, validPathsProvider = defaul
src/static-files.ts:23
↓ 2 callersFunctionwriteResponse
( response: Response, serverResponse: ServerResponse, )
src/service.ts:50
↓ 1 callersFunctionacceptPath
( request: Request, def: AcceptPathDef<T>, )
src/accept-path.ts:15
↓ 1 callersFunctionacceptPathTests
()
tests/accept-path.ts:4
↓ 1 callersFunctionbodyTests
()
tests/body.ts:5
↓ 1 callersFunctiondefaultFileReader
(dynamic: boolean)
src/static-files.ts:75
↓ 1 callersFunctiongetErrorStatus
(error: any)
src/service.ts:91
↓ 1 callersFunctionproduceResponse
( request: Request, endpoint: Endpoint<any>, )
src/service.ts:34
↓ 1 callersFunctionreadJSON
(req: Readable)
src/body.ts:18
↓ 1 callersFunctionreadRaw
(req: Readable)
src/body.ts:3
↓ 1 callersFunctionrouterTests
()
tests/router.ts:5
↓ 1 callersFunctionserviceTests
()
tests/service.ts:25
↓ 1 callersFunctionstartServer
()
src/example/static-files.ts:7
↓ 1 callersFunctionstaticFilesTests
()
tests/static-files.ts:10
↓ 1 callersFunctionwriteStreamBody
( body: Readable, serverResponse: ServerResponse )
src/service.ts:63
Methodconstructor
({ status, options, headers, body }: HttpErrorParams)
src/error.ts:15
FunctiondefaultErrorHandler
(error: any)
src/service.ts:83
FunctiondefaultHeadersProvider
(path)
src/static-files.ts:108
FunctiondefaultLogger
(request: Request, response: Response)
src/service.ts:79
FunctiondefaultPathRewriter
(path)
src/static-files.ts:64
FunctiondefaultValidPathsProvider
(dir: string)
src/static-files.ts:72
FunctionminimalContentTypeResolver
(ext)
src/static-files.ts:84
Functionread
()
tests/body.ts:9
Functionread
()
tests/service.ts:51