Poq.SDK.Node

Home > @poq/proxy-middleware > ProxyMiddlewareOptions

ProxyMiddlewareOptions type

Proxy options is a combination of http proxy server options plus with possibility to replace default proxy with your own.

Signature:

export declare type ProxyMiddlewareOptions = ServerOptions & {
    proxy?: Server;
    events?: {
        onError?: Server.ErrorCallback;
        onStart?: Server.StartCallback;
        onProxyReq?: Server.ProxyReqCallback;
        onProxyRes?: Server.ProxyResCallback;
        onEnd?: Server.EndCallback;
        onOpen?: Server.OpenCallback;
        onClose?: Server.CloseCallback;
        onECONNRESET?: Server.EconnresetCallback;
    };
};