source: frontend/node_modules/http-proxy-middleware/dist/http-proxy-middleware.d.ts

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 1.0 KB
RevLine 
[9af201e]1import type { Filter, RequestHandler, Options } from './types';
2export declare class HttpProxyMiddleware {
3 private logger;
4 private config;
5 private wsInternalSubscribed;
6 private serverOnCloseSubscribed;
7 private proxyOptions;
8 private proxy;
9 private pathRewriter;
10 constructor(context: Filter | Options, opts?: Options);
11 middleware: RequestHandler;
12 private catchUpgradeRequest;
13 private handleUpgrade;
14 /**
15 * Determine whether request should be proxied.
16 *
17 * @private
18 * @param {String} context [description]
19 * @param {Object} req [description]
20 * @return {Boolean}
21 */
22 private shouldProxy;
23 /**
24 * Apply option.router and option.pathRewrite
25 * Order matters:
26 * Router uses original path for routing;
27 * NOT the modified path, after it has been rewritten by pathRewrite
28 * @param {Object} req
29 * @return {Object} proxy options
30 */
31 private prepareProxyRequest;
32 private applyRouter;
33 private applyPathRewrite;
34 private logError;
35}
Note: See TracBrowser for help on using the repository browser.