MCPcopy Index your code

hub / github.com/chimurai/http-proxy-middleware / functions

Functions103 in github.com/chimurai/http-proxy-middleware

↓ 89 callersFunctioncreateProxyMiddleware
(options: Options<TReq, TRes>)
src/factory.ts:82
↓ 69 callersFunctioncreateApp
(...middlewares: RequestHandler[])
test/e2e/test-kit.ts:9
↓ 49 callersFunctionmatchPathFilter
( pathFilter: Filter<TReq> = '/', uri: string | undefined, req: http.IncomingMessage, )
src/path-filter.ts:9
↓ 23 callersFunctioncreateMockRequest
(options: Partial<IncomingMessage> = {})
test/test-utils.ts:6
↓ 21 callersFunctioncreateUrl
({ protocol, host, port, path }: CreateUrlParams)
src/utils/create-url.ts:10
↓ 20 callersFunctionfixRequestBody
( proxyReq: http.ClientRequest, req: TReq, )
src/handlers/fix-request-body.ts:26
↓ 19 callersFunctionfakeProxyRequest
()
test/unit/fix-request-body.spec.ts:11
↓ 18 callersFunctioncreateRequestWithBody
(body: unknown)
test/unit/fix-request-body.spec.ts:15
↓ 17 callersFunctiongetTarget
(req: TReq, res: TRes | undefined, config: Options<TReq, TRes>)
src/router.ts:11
↓ 17 callersFunctionstringifyFormData
(contentType: string, data: object)
src/handlers/fix-request-body-utils/stringify-form-data.ts:12
↓ 16 callersFunctiongetPort
(sockets?: Sockets)
src/utils/logger-plugin.ts:9
↓ 14 callersFunctioncreateMockResponse
(request = createMockRequest())
test/test-utils.ts:13
↓ 14 callersFunctionresponseInterceptor
(interceptor: Interceptor<TReq, TRes>)
src/handlers/response-interceptor.ts:39
↓ 11 callersFunctioncreatePathRewriter
(rewriteConfig: PathRewriteConfig<TReq, TRes> | undefined)
src/path-rewriter.ts:16
↓ 10 callersFunctionnormalizeIPv6LiteralTargets
(options: Options<TReq, TRes>)
src/utils/ipv6.ts:25
↓ 9 callersFunctiondefinePlugin
(fn: Plugin<TReq, TRes>)
src/plugins/define-plugin.ts:31
↓ 7 callersFunctiongetPlugins
( options: Options<TReq, TRes>, )
src/get-plugins.ts:11
↓ 6 callersFunctiongetFunctionName
(fn: Function)
src/utils/function.ts:3
↓ 5 callersFunctioncloseServer
(server?: http.Server)
test/e2e/websocket.spec.ts:45
↓ 5 callersFunctiongetLogger
(options: Options)
src/logger.ts:22
↓ 5 callersFunctionsanitize
(input: string | undefined)
src/utils/sanitize.ts:1
↓ 5 callersFunctiontestFunctionAsPathFilter
(val: any)
test/unit/path-filter.spec.ts:181
↓ 5 callersFunctionwaitInterceptorHandler
(ms = 1)
test/unit/response-interceptor.spec.ts:6
↓ 4 callersFunctioncloseServer
(server: http.Server)
test/e2e/graceful-shutdown.spec.ts:32
↓ 4 callersFunctioncreateAppWithPath
(path: string | string[], middleware: RequestHandler)
test/e2e/test-kit.ts:15
↓ 4 callersFunctioncreateHonoProxyMiddleware
( options: Options, )
src/factory-hono.ts:29
↓ 4 callersFunctionwriteBody
(bodyData: string)
src/handlers/fix-request-body.ts:47
↓ 3 callersFunctioncloseWebSocketClient
(socket?: WebSocket)
test/e2e/websocket.spec.ts:62
↓ 3 callersFunctionconnectWebSocket
(url: string)
test/e2e/websocket.spec.ts:80
↓ 3 callersFunctiongetUrlPathName
* Parses URI and returns RFC 3986 path * * @param {String} uri from req.url * @return {String} RFC 3986 path
src/path-filter.ts:89
↓ 3 callersFunctionreceiveMessage
()
test/e2e/websocket.spec.ts:88
↓ 3 callersFunctionverifyConfig
( options: Options<TReq, TRes>, )
src/configuration.ts:6
↓ 2 callersMethod#getServer
(req: TReq)
src/http-proxy-middleware.ts:52
↓ 2 callersFunctioncloseServer
(server: Http2SecureServer)
test/e2e/http2-server.spec.ts:20
↓ 2 callersFunctionconnectAndEcho
(path: string, message: string)
test/e2e/websocket.spec.ts:198
↓ 2 callersFunctionconnectWebSocketWithTimeout
(url: string)
test/e2e/websocket.spec.ts:265
↓ 2 callersFunctioncontainsPath
(v: string)
src/router.ts:68
↓ 2 callersFunctiondone
(result: boolean)
test/e2e/test-kit.ts:29
↓ 2 callersFunctionget
(uri: string)
test/e2e/websocket.spec.ts:110
↓ 2 callersFunctiongetStatusCode
(errorCode: string)
src/status-code.ts:1
↓ 2 callersFunctionhandlerFormDataBodyData
(contentType: string, data: { [key: string]: any })
test/unit/fix-request-body.spec.ts:22
↓ 2 callersFunctionisBodylessResponse
(statusCode?: number, method?: string)
src/handlers/response-interceptor.ts:109
↓ 2 callersFunctionmatchSingleGlobPath
(pattern: string | string[], uri?: string)
src/path-filter.ts:55
↓ 2 callersFunctionmatchSingleStringPath
* @param {String} pathFilter '/api' * @param {String} uri 'http://example.org/api/b/c/d.html' * @return {Boolean}
src/path-filter.ts:50
↓ 2 callersFunctionnormalizeIPv6ProxyTarget
(target: Options['target'], optionName: 'target' | 'forward')
src/utils/ipv6.ts:33
↓ 1 callersFunctioncopyHeaders
* Copy original headers * https://github.com/apache/superset/blob/9773aba522e957ed9423045ca153219638a85d2f/superset-frontend/webpack.proxy-config.js#
src/handlers/response-interceptor.ts:159
↓ 1 callersFunctioncreateMockClientRequest
( ...args: ConstructorParameters<typeof ClientRequest> )
test/test-utils.ts:24
↓ 1 callersFunctiondecompress
* Streaming decompression of proxy response * source: https://github.com/apache/superset/blob/9773aba522e957ed9423045ca153219638a85d2f/superset-front
src/handlers/response-interceptor.ts:121
↓ 1 callersFunctionescapeMultipartFieldName
(fieldName: string)
src/handlers/fix-request-body-utils/stringify-form-data.ts:63
↓ 1 callersFunctiongetMultipartBoundary
(contentType: string)
src/handlers/fix-request-body-utils/stringify-form-data.ts:29
↓ 1 callersFunctiongetTargetFromProxyTable
( req: TReq, table: Record<string, ProxyServerOptions['target']>, )
src/router.ts:27
↓ 1 callersFunctionisBracketedIPv6Hostname
(hostname: string)
src/utils/ipv6.ts:71
↓ 1 callersFunctionisGlobPath
(pathFilter: string)
src/path-filter.ts:97
↓ 1 callersFunctionisHostAndPathKey
(v: string)
src/router.ts:72
↓ 1 callersFunctionisIPv6Available
()
test/e2e/test-kit.ts:25
↓ 1 callersFunctionisResponseLike
(obj: any)
src/plugins/default/error-response-plugin.ts:9
↓ 1 callersFunctionisSocketLike
(obj: any)
src/plugins/default/error-response-plugin.ts:13
↓ 1 callersFunctionisStringPath
(pathFilter: string)
src/path-filter.ts:93
↓ 1 callersFunctionisValidRewriteConfig
(rewriteConfig: PathRewriteConfig<TReq, TRes> | undefined)
src/path-rewriter.ts:49
↓ 1 callersFunctionjsonMiddleware
(data: Record<string, unknown>)
test/e2e/express-router.spec.ts:53
↓ 1 callersFunctionmatchMultiGlobPath
(patternList: string | string[], uri?: string)
src/path-filter.ts:61
↓ 1 callersFunctionmatchMultiPath
* @param {String} pathFilterList ['/api', '/ajax'] * @param {String} uri 'http://example.org/api/b/c/d.html' * @return {Boolean}
src/path-filter.ts:70
↓ 1 callersFunctionnormalizeIPv6DestinationHostname
(hostname: string)
src/utils/ipv6.ts:79
↓ 1 callersFunctionparsePathRewriteRules
(rewriteConfig: PathRewriteConfig | undefined)
src/path-rewriter.ts:64
↓ 1 callersMethodregisterPlugins
(proxy: ProxyServer<TReq, TRes>, options: Options<TReq, TRes>)
src/http-proxy-middleware.ts:126
↓ 1 callersFunctionrouter
(req)
test/e2e/msw.spec.ts:141
↓ 1 callersFunctionsplitHostAndPathKey
(v: string)
src/router.ts:76
↓ 1 callersFunctionstartProxyServer
(socketPath: string)
test/e2e/unix-domain-socket.spec.ts:33
↓ 1 callersFunctionstartTargetServer
(socketPath: string)
test/e2e/unix-domain-socket.spec.ts:15
↓ 1 callersFunctionstripBrackets
(hostname: string)
src/utils/ipv6.ts:75
↓ 1 callersFunctiontoError
(error: unknown)
src/handlers/fix-request-body.ts:89
↓ 1 callersFunctiontoTargetUrl
(target: Options['target'])
src/utils/ipv6.ts:59
↓ 1 callersFunctiontoWebSocketUrl
(url: string)
test/e2e/websocket.spec.ts:43
↓ 1 callersFunctionvalidateMultipartField
(fieldName: string, fieldValue: string, boundary: string)
src/handlers/fix-request-body-utils/stringify-form-data.ts:45
FunctionHome
()
examples/next-app/app/page.tsx:5
FunctionRootLayout
({ children, }: Readonly<{ children: React.ReactNode; }>)
examples/next-app/app/layout.tsx:21
Function[Symbol.asyncDispose]
()
test/e2e/unix-domain-socket.spec.ts:25
Functionclose
(proxyRes, proxySocket, proxyHead)
test/types.spec.ts:251
Methodconstructor
(options: Options<TReq, TRes>)
src/http-proxy-middleware.ts:29
Methodconstructor
(message: string, code: string)
src/errors.ts:11
Functioneconnreset
(error, req, res, target)
test/types.spec.ts:263
Functionend
(req, res, proxyRes)
test/types.spec.ts:258
Functionerror
(error, req, res, target)
test/types.spec.ts:227
Functionerror
(err, req, res)
test/e2e/http-proxy-middleware.spec.ts:400
FunctionerrorHandler
(err: Error, req, res, next)
test/e2e/router.spec.ts:118
FunctionerrorMiddleware
(err, req, res, next)
test/e2e/express-error-middleware.spec.ts:16
Functionfilter
(pathname, req)
test/e2e/express-router.spec.ts:22
Functionfilter
(path, req)
test/e2e/http-proxy-middleware.spec.ts:179
Functionfn
(path: string, req: any)
test/unit/path-filter.spec.ts:184
Functionhandler
(req: NextApiRequest, res: NextApiResponse)
examples/next-app/pages/api/users.ts:7
FunctionmyArrowFunction
()
test/unit/utils/function.spec.ts:12
FunctionmyErrorHandler
()
test/unit/get-plugins.spec.ts:83
FunctionmyFunction
()
test/unit/utils/function.spec.ts:7
FunctionpathRewrite
(path, req)
test/e2e/path-rewriter.spec.ts:53
FunctionproxyReq
(proxyReq, req, res, options)
test/types.spec.ts:195
FunctionproxyReqWs
(proxyReq, req, socket, options, head)
test/types.spec.ts:244
FunctionproxyRes
(proxyRes, req, res)
test/types.spec.ts:199
FunctionreadableLength
()
test/unit/fix-request-body.spec.ts:249
FunctionrewritePath
(path: string)
src/path-rewriter.ts:34
Functionrouter
(req)
test/unit/router.spec.ts:39
next →1–100 of 103, ranked by callers