|
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:
687 bytes
|
| Line | |
|---|
| 1 | /// <reference types="node" />
|
|---|
| 2 | import type * as http from 'http';
|
|---|
| 3 | declare type Interceptor = (buffer: Buffer, proxyRes: http.IncomingMessage, req: http.IncomingMessage, res: http.ServerResponse) => Promise<Buffer | string>;
|
|---|
| 4 | /**
|
|---|
| 5 | * Intercept responses from upstream.
|
|---|
| 6 | * Automatically decompress (deflate, gzip, brotli).
|
|---|
| 7 | * Give developer the opportunity to modify intercepted Buffer and http.ServerResponse
|
|---|
| 8 | *
|
|---|
| 9 | * NOTE: must set options.selfHandleResponse=true (prevent automatic call of res.end())
|
|---|
| 10 | */
|
|---|
| 11 | export declare function responseInterceptor(interceptor: Interceptor): (proxyRes: http.IncomingMessage, req: http.IncomingMessage, res: http.ServerResponse) => Promise<void>;
|
|---|
| 12 | export {};
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.