12345678910111213141516171819202122 |
- import { Plugin } from '../../types';
- /**
- * Implements option.on object to subscribe to http-proxy events.
- *
- * @example
- * ```js
- * createProxyMiddleware({
- * on: {
- * error: (error, req, res, target) => {},
- * proxyReq: (proxyReq, req, res, options) => {},
- * proxyReqWs: (proxyReq, req, socket, options) => {},
- * proxyRes: (proxyRes, req, res) => {},
- * open: (proxySocket) => {},
- * close: (proxyRes, proxySocket, proxyHead) => {},
- * start: (req, res, target) => {},
- * end: (req, res, proxyRes) => {},
- * econnreset: (error, req, res, target) => {},
- * }
- * });
- * ```
- */
- export declare const proxyEventsPlugin: Plugin;
|